Minimalist outgoing email
I previously had a hell of a time (eventually I found another way) setting up postfix on another linode server. I don't especially want to set up a mail server and really don't need anything more than the ability for an application on my server to send an email.
What's the simplest way to do that, can someone point me or suggest an approach?
Thanks!
Pito
5 Replies
use that guide replacing apt stuff with yum.
apt-get update => yum update
apt-get upgrade => not needed
apt-get install exim4-daemon-light mailutils => yum install exim4-daemon-light mailutils
But, now:
dpkg-reconfigure exim4-config
is that part of apt and does it have a counterpart in yum, or is that step "as is" if I am doing it on centos?
Thanks!!!
Usually it is enough to just install the package with no additional configuration if you only want to send emails out.
Anyway, a side note: with either postfix or exim, make sure you've also configured both reverse DNS for your host, and the SPF record for the domain name you will be sending emails from. If you don't do this, your emails may go straight to the recipient's junk folder.
@Vito Botta:
Out of curiosity, what problems did you have with postfix?
Usually it is enough to just install the package with no additional configuration if you only want to send emails out.
Anyway, a side note: with either postfix or exim, make sure you've also configured both reverse DNS for your host, and the SPF record for the domain name you will be sending emails from. If you don't do this, your emails may go straight to the recipient's junk folder.
It was a little tricky for a newbie. I wanted emails sent to mydomain.com to be redirected to gmail. I think I had a mistake in my dns and a mistake in my firewall but after hours of frustration I found that godaddy where my domain lives has a feature to do email forwarding without it ever hitting my server, which was better.
- edit your main.cf and add the location of the canonical map, e.g.
sendercanonicalmaps = hash:/etc/postfix/maps/canonical.map
- add the forwarding settings for each couple of email addresses to the canonical map (/etc/postfix/maps/canonical.map), e.g.
postmap /etc/postfix/maps/canonical.map
postfix reload