1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Multiple SMTP Relay

Discussion in 'Plesk 11.x for Linux' started by EnriqueR, Feb 4, 2013.

  1. EnriqueR

    EnriqueR Regular Pleskian

    Nov 11, 2010
    Likes Received:
    Carcelén, 6, 3M, Albacete, Spain
    Dear friends, I have a VPS with multiple domains hosted. Over time I was a problem with shipping to accounts 'hotmail.com'. The solution I found was to hire an SMTP service to relay e. I had to configure Postfix to have some authentication data for each domain. Here attached configuration for which you can serve:

    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwords
    smtp_sasl_security_options = noanonymous
    smtp_tls_security_level = may
    start_tls = yes
    header_size_limit = 4096000
    smtp_sender_dependent_authentication = yes
    sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
    relayhost =

    @dominio.com [smtp.servidorsmtp.com]:25

    #[smtp.servidorsmtp.com]:25 usuario:clave
    @dominio.com usuario:clave

    postmap /etc/postfix/sender_relay
    postmap hash:/etc/postfix/sasl_passwords
    /etc/init.d/postfix restart

    This configuration works well for the relay of all emails in each domain. My question now is whether there is a Postfix configuration allowing the relay emails sent only to 'hotmail.com' for each domain. That would solve my problem, because the only emails I am having reception problems are with 'hotmail.com', others are working properly and I can send to my VPS server.

    Thank you very much in advance.