Plesk Onyx for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk Onyx for Linux
Question
How to configure Qmail server send outgoing messages though relay?
Answer
Plesk does not support configuring relay options in Qmail. Vote to implement possibility to configure relayhost in Plesk Uservoice portal. Top-ranked suggestions is likely to be implemented in new product versions.
Comments
8 comments
how can i redirect email trafic for a domain and the others domains use localhost mailserver?
??
Hello Luis Zubeldia
As I understand, you want to process email messages locally, using the mail server, provided by Plesk.
In that case, make sure that Tools & Settings > Mail Server Settings > Enable mail management functions in Plesk is selected and mail server components are installed, for example:
More information may be found in this documentation article: https://docs.plesk.com/en-US/obsidian/administrator-guide/59430/
In case I understood you incorrectly, please, provide more details about the configuration you want to achieve. Also, feel free to contact Plesk Support this will allow a deeper investigation.
Not exactly.
I want to redirect the email trafic for only one domain, outside the server, and all other domains, process at local.
i try with something like
example1.com:relay1-mail-server.com
:localhost
but doesn´t works
Luis Zubeldia
We have a feature suggestion about this in "Open DIscussion" state: https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/5733652-smarthost-external-smtp
You achieve this manually, try using sender_dependent_relayhost_maps functionality, described here:
http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
thansks, .
so thats means that in the example of this article
cat /var/qmail/control/smtproutes
example.com:relay-mail-server.com
example1.com:relay-mail-server.com
example2.com:relay2-mail-server.com
:relay3-mail-server.com
i can use different relays for diferent domains at the same time, but i can´t set a local mail processs for any of the domains in the list?
very strange
thanks
Hi Luis Zubeldia,
That is actual behavior of Qmail, nothing that from Plesk can be changed.
What the smtproutes control, is the use of MX records to try deliver mail, or setting specific server where to deliver email to. If you don't use smtproutes for specific domain, it will be tried to be delivered locally if the domain exists in Plesk and the mail service is enabled for it.
Additional information in the official docs from Qmail: http://qmail.cti.gr/man/man8/qmail-remote.html
Dear Ivan,
You told it is possible to do it in postfix:
You achieve this manually, try using sender_dependent_relayhost_maps functionality, described here:
http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
It is posissble that you described it with an example?
I need to send all the mail from domain1.com to xxx.eu.iphmx.com
And also add a header for all the mail sent from this domain called x-outbound-auth
And the rest of the domains of this server send mails normally.
Thank you in advance
Please sign in to leave a comment.