• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

SMTP Mail Problem with Outgoing Mails

ffischer

Basic Pleskian
Hi everybody,
i have a big problem.

let me explain.

I have a ples 11.x with 2 Fixed IP Addresses.

Server had as hostname domain.com ( on IP1 )

Now 1 Domain ( testname.com ) is on a different IP Address as the default.
Now when testname.com is sending a mail, in email header stands as Mail Server domain.com


In Plesk 11 Help i see the following information, wich can help me, i think so :)

In Plesk for Linux with the Postfix mail server, you can change the IP address used for sending mail. Also, if your server sends mail from domain IP addresses, you can specify which name will be used as a host name in SMTP greetings.
Choose from the three options:

Send from domain IP addresses. By default, mail from each domain is sent using the domain's IP address. The host name used in SMTP greeting is defined by the configuration of the mail server.

Send from domain IP addresses and use domain names in SMTP greeting. If selected, Plesk changes the mail server configuration so that the SMTP greeting will contain the name of the domain from which an email message is sent.
This option helps to prevent the sender's IP address from being put into public black lists, such as the Spamhaus or OpenBL lists. This might happen if the mail server host name is used in SMTP greeting for the messages sent from domain IP addresses. Some recipient servers consider such messages as spam.
We recommend that you use this option if you host less than 100 domains. In case of a large number of domains, using this option significantly increases the load on the server.

Send from the specified IP address. You might want to use certain IPv4 and IPv6 addresses for all outgoing mail. Sending all mail from the specified address might be useful, for example, if the IP address of the mail server was put into public black lists, such as the Spamhaus or OpenBL lists. If you select None, outgoing mail will not be sent.

i think "Send from domain IP addresses and use domain names in SMTP greeting" will help, so that every Mail is send ...
in the SMTP Header shows the "sender" Domain right?

but how i can configure it?
The Options are not showing .

I need this config because the primary IP Address is on some spamlists ( Haked Website :( )
so i need that Outgoing mails are using the domain IP.

Can someone help me?
 
This option only works with Postfix, not Qmail. So if you are not using it already, you will need to switch to Postfix.

However, if you only have two IPs, all you really need to do is route traffic on port 25 to go out via the other IP. If that's all you want to do, you have a couple of options.

First of all, the IP used by Plesk to connect to the outside word is the IP configured on eth0:0. If you have eth0:0 and eth0:1 (or eth0 and eth1 or similar) then can can try swapping the IPs around and rebooting BUT BE WARNED that although I have done this myself at some point in the dim and distant past I think it could be a little dangerous and unless you have remote console access to correct a problem if the system falls off the network I would avoid this.

The other option is to use iptables to basically route traffic in the way you want. I don't recall how to do this off-hand, but I know for certain that it has been discussed on the forums here with step by step instructions. You will need to search in all the Plesk sections, possibly including 8.6. Keywords like "route" "smtp" "25" "IP" "iptables" may help along with other suitable words or phrases, like "change email IP" or "outgoing IP" or something like that.

p.s. when using iptables you don't need to be using postfix -- it works with any MTA including qmail.
 
Hi,
thank you for your anwser.

Actually i have Postfix installed and running.

Think is not really easy to switch to this "Send by Domain" Function.
but in the help documentation, i read this so that i need only choose the function.

is this somewhere documented ?
 
Back
Top