Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jan 24, 2011 12:38 pm 
Offline
Senior Newbie

Joined: Fri Jan 14, 2011 10:26 am
Posts: 10
I need to have my php app on my linode server send out the occasional email. My server does not need to receive emails. I am running Centos 5.5.

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


Top
   
 Post subject:
PostPosted: Mon Jan 24, 2011 1:34 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Try using exim if you had problems with postfix http://library.linode.com/email/exim/se ... 0.04-lucid
use that guide replacing apt stuff with yum.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Mon Jan 24, 2011 1:50 pm 
Offline
Senior Newbie

Joined: Fri Jan 14, 2011 10:26 am
Posts: 10
Sorry I am not familiar with apt.. Guessing now:


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!!!


Top
   
 Post subject:
PostPosted: Mon Jan 24, 2011 2:23 pm 
Offline
Junior Member

Joined: Mon Mar 16, 2009 3:38 pm
Posts: 30
Website: http://vitobotta.com
Location: Espoo, Finland
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.

_________________
My blog with tips and walkthroughs on web development with free and open source tools (such as Linux, Ruby, Rails, MySQL), performance & scalability, security, database, search engine optimisation.


Top
   
 Post subject:
PostPosted: Mon Jan 24, 2011 3:00 pm 
Offline
Senior Newbie

Joined: Fri Jan 14, 2011 10:26 am
Posts: 10
Vito Botta wrote:
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.


Top
   
 Post subject:
PostPosted: Mon Jan 24, 2011 5:21 pm 
Offline
Junior Member

Joined: Mon Mar 16, 2009 3:38 pm
Posts: 30
Website: http://vitobotta.com
Location: Espoo, Finland
I see, definitely it's easier anyway if you can get Godaddy to forward your emails. For reference, though, if I remember rightly all you need to do to forward emails with Postfix is

- edit your main.cf and add the location of the canonical map, e.g.

sender_canonical_maps = 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.

source@address.com target@email.com

- postmap /etc/postfix/maps/canonical.map

- postfix reload

_________________
My blog with tips and walkthroughs on web development with free and open source tools (such as Linux, Ruby, Rails, MySQL), performance & scalability, security, database, search engine optimisation.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group