How to configure SMTP Relay in Qmail server for outgoing messages?

Follow

Comments

7 comments

  • Avatar
    Luis Zubeldia

    how can i redirect email trafic for a domain and the others domains use localhost mailserver?

    0
    Comment actions Permalink
  • Avatar
    Luis Zubeldia

    ??

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    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.

    0
    Comment actions Permalink
  • Avatar
    Luis Zubeldia

    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

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    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

    0
    Comment actions Permalink
  • Avatar
    Luis Zubeldia

    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

    0
    Comment actions Permalink
  • Avatar
    Francisco Garcia

    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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request