Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Authentication to Postfix

  1. SSH into system
  2. nano /etc/postfix/sasl_passwd and add the following line at the bottom of the file.
    1. relayhost username:password
  3. than we need to run the following commands

    postmap hash:/etc/postfix/sasl_passwd

    in add:
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options =

    then do postfix reload

    refer to for more info

    For ISPs like 1and1 that will reject the message if the from user and the sending 
    user don't match you can add these rules to /etc/postfix/generic replacing all 
    with the real data used above for authentication. <> <>

    Add the following to the end of /etc/postfix/ 

    smtp_generic_maps = hash:/etc/postfix/generic

    Then run:

    postmap /etc/postfix/generic
    service postfix restart

    NOTE: This is only needed if the maillog only has lines in it regarding "Connection RESET in response to MAIL FROM" 
    or something similar.  This indicates that the mail server is rejecting it based on how we are identifying 
    ourselves.  This is generally used in conjunction with them setting up a real email box with a real user and using 
    the accounts actual email address to send from.  Again, this is only really for paranoid mail hosts.
  • No labels