View Single Post

  #2 (permalink)  
Old 03-08-2005
Bioperler
 
Posts: n/a
Default Re: Configure Postfix as an SMTP Mailclient?

Spoettel Otmar wrote:
> Hello,
>
> i need for the PHP mail() function an Postfix (sendmail) that act only
> as an SMTP Client same as i.e. Outlook Express.
> That means, postfix should all mails send to my Freemail Account (gmx.net).
> To do this, postfix must login with username (someone@gmx.net) and
> password. Also must postfix fill the Mail From field with
> someone@gmx.net and the MailTo field with webmaster@somedomain.dyndns.org
>
> Please, can me someone give a hint, where i can find a Example how to
> configure this?
>
> Thank You!
>
> Otmar


=== main.cf =====================
relayhost = gmx.net
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd


=== /etc/postfix/sasl_passwd ===
gmx.net username:password



Run "postmap /etc/postfix/sasl_passwd" after that to create a .db-file.
Don't forget to restart postfix to make these changes effective.
For adress-rewriting check: http://www.postfix.org/ADDRESS_REWRITING_README.html

Reply With Quote