I'm digging the web around to find the best way to configure Postfix.
I don't want to install a full Postfix server, the only thing I want is to send mail with the PHP mail(). I know this can be tricky, spammer loves the misconfigured mail server. So, I am looking for the best way to do this.
The best documentation I found is the Archlinux one.
But on several blogs I found some more tricky configuration like this
myhostname = foo.me
mydestination = localhost
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
mydestination = sd-24300.com , localhost
mail_owner = postfix
smtpd_recipient_restrictions =reject_unknown_sender_domain,reject_non_fqdn_sender,reject_unknown_recipient_domain,reject_non_fqdn_recipient,permit_mynetworks,reject_unauth_destination,permit
smtpd_data_restrictions =reject_unauth_pipelining,permit
inet_interfaces = loopback-only
So my question is quite easy, what is the best way to do this? By best i mean the more secure one.
Ps: My server runs a Ubuntu 12.04 with LAMP