hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Lightweight CentOS/Linux SMTP Mail server Recommendations
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Lightweight CentOS/Linux SMTP Mail server Recommendations

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-03-2010, 04:54 PM
novice32 novice32 is offline
Newbie
 
Join Date: Feb 2010
Posts: 19

Lightweight CentOS/Linux SMTP Mail server Recommendations


What would you recommend for a lightweight, CentOS/Linux SMTP server? I really only need it for outbound, "automated emails" in support of my website. I have Google Apps setup for 'personalized' outbound/inbound emails.

I'm looking for something extremely easy to setup for outgoing mails.

Thanks,
Novice32

Reply With Quote


Sponsored Links
  #2  
Old 04-03-2010, 05:05 PM
jhadley jhadley is offline
SSD Powered
 
Join Date: Jun 2006
Location: United Kingdom
Posts: 1,726
Dovecot+Postfix works well.

__________________
JHWC - Host / Sysadmin / Developer

Reply With Quote
  #3  
Old 04-03-2010, 05:40 PM
Luckybum Luckybum is offline
Junior Guru Wannabe
 
Join Date: Jan 2004
Location: Northeast
Posts: 60
I'm in a similar situation and actually did this myself based on this article.

Just read up a little on postfix virtual domain mapping if you are going to host external domains. Also, make sure you have rDNS setup for your domain and set up an SPF record. When everything is set, you can check yourself over to mxtoolbox.com

Sweet running setup up with Webmin as I'm not a command line commando. Ultimately I ditched it in favor of a Fastmail.fm account as I didn't want to deal with it. Fastmail will also host your DNS so you can ditch both mail and DNS servers on your VPS and end up with a really cost effective solution by using a paid mail service in this manner.

Good luck with it.


Last edited by Luckybum; 04-03-2010 at 05:48 PM. Reason: sp. and forgot a link
Reply With Quote
Sponsored Links
  #4  
Old 04-03-2010, 06:30 PM
usera usera is offline
Junior Guru
 
Join Date: Nov 2006
Posts: 243
technically if you want to just do outbound; you do not even need smtp service since it listens on port 25 and could probably get away adding an account in google to use smtp. Therefore you just need to setup exim/postfix in null client mode which should satisfy outbound unless there's some script that needs to send mail through port 25.

Reply With Quote
  #5  
Old 04-03-2010, 06:35 PM
dennis123123 dennis123123 is offline
Newbie
 
Join Date: Mar 2010
Posts: 26
just outgoing: ssmtp
simple, and "just works" http://www.linux.com/archive/feature/132006

for inc+outgoing; as mentionned - dovecot+postfix ftw

Reply With Quote
  #6  
Old 04-03-2010, 06:41 PM
usera usera is offline
Junior Guru
 
Join Date: Nov 2006
Posts: 243
you guys are so weird. what's the point of recommending dovecot in regards to novice32 question.

Reply With Quote
  #7  
Old 04-03-2010, 08:49 PM
novice32 novice32 is offline
Newbie
 
Join Date: Feb 2010
Posts: 19
Thanks everyone for the responses. I like the posfix in null client mode option. Google Apps does offer smtp access, but only for the enterprise version $$$ ( I have the standard/free Google mail app). I don't have GNOME setup, so command line all the way.. plus new the Linux too.

Reply With Quote
  #8  
Old 04-03-2010, 08:54 PM
boonchuan boonchuan is offline
Retired Moderator
 
Join Date: Mar 2004
Location: Singapore/Melbourne
Posts: 6,815
Qmail as in Qmailtoaster will be extremely easy to setup. I guess you can block the POP ports etc and just allow SMTP

Reply With Quote
  #9  
Old 04-05-2010, 07:38 AM
novice32 novice32 is offline
Newbie
 
Join Date: Feb 2010
Posts: 19
What's the memory footprint of posfix ?

Reply With Quote
  #10  
Old 04-05-2010, 10:27 AM
dennis123123 dennis123123 is offline
Newbie
 
Join Date: Mar 2010
Posts: 26
36832 KB at the moment on Debian Lenny 64 bit

Reply With Quote
  #11  
Old 04-09-2010, 07:45 AM
novice32 novice32 is offline
Newbie
 
Join Date: Feb 2010
Posts: 19
For my domain, I setup Postfix (on CentOS 5.4) as a Null client. On automated outbound emails, I need to bcc myself ( "info@domain.com", which the PHP code does). However, I never receive emails in my Google app account. Instead, they appear on localhost server ( At the Linux prompt I get "you have new mail"). As a null client, why would I receive local mail and thoughts on the issue? How can I double-check that postfix is really being used (as opposed to sendmail, which appears to be installed). I'm not a Linux GURU..so advice would help

Reply With Quote
  #12  
Old 04-09-2010, 08:15 AM
xtrac568 xtrac568 is offline
Web Hosting Master
 
Join Date: Jun 2006
Location: Europe
Posts: 632
Quote:
Originally Posted by novice32 View Post
For my domain, I setup Postfix (on CentOS 5.4) as a Null client. On automated outbound emails, I need to bcc myself ( "info@domain.com", which the PHP code does). However, I never receive emails in my Google app account. Instead, they appear on localhost server ( At the Linux prompt I get "you have new mail"). As a null client, why would I receive local mail and thoughts on the issue? How can I double-check that postfix is really being used (as opposed to sendmail, which appears to be installed). I'm not a Linux GURU..so advice would help
getting email to your local user account while trying to send an outbound message, usually indicates that postfix is actually not working correctly, e.g. not sending any outbound emails and gives you an report to local user account.

have a look at /var/log/mail.info

Reply With Quote
  #13  
Old 04-09-2010, 06:26 PM
novice32 novice32 is offline
Newbie
 
Join Date: Feb 2010
Posts: 19
I didn't configure it properly. Now works: http://www.postfix.org/STANDARD_CONF...ml#null_client

Reply With Quote
  #14  
Old 04-09-2010, 06:38 PM
h4wk h4wk is offline
Web Hosting Master
 
Join Date: Dec 2005
Posts: 1,270
Just remember guys gmail apps has a 500 smtp limit for free accounts and 2000 smtp limit for paid users.

Reply With Quote
  #15  
Old 04-12-2010, 09:06 AM
novice32 novice32 is offline
Newbie
 
Join Date: Feb 2010
Posts: 19
Hey everyone..I really need your help.. I setup postfix as a null client, but receive the following in Gmail for sent emails (from Postfix)

---------------------------------------------
host ASPMX.L.GOOGLE.com[209.85.223.16] said:
550-5.1.1 The email account that you tried to reach does not exist. Please
try 550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1

------------------------------------------------
*** where you see EXAMPLE.com, my real domain is used.

"postconf -n" outputs

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = loopback-only
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = example.com
myhostname = mail.example.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relayhost = $mydomain
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

--------------------------------------------------------------
According to POSTFIX, a null client setup should follow:

1 /etc/postfix/main.cf:
2 myorigin = $mydomain
3 relayhost = $mydomain
4 inet_interfaces = loopback-only
5 local_transport = error:local delivery is disabled
6
7 /etc/postfix/master.cf:
8 Comment out the local delivery agent entry

---------------------------------------------------------------

Furthermore, I have DNS "A" record for mail.example.com that points to my IP address. My IP address is also listed in the SPF record.

WHAT AM I DOING WRONG?

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
php: mail() with remote smtp on linux nand Hosting Security and Technology 2 09-22-2005 05:40 PM
Lightweight Hosting Recommendations? kelvinc Web Hosting 15 12-21-2004 09:37 AM
Linux Mail Servers - recommendations Alan @ CIT Hosting Security and Technology 15 04-19-2003 04:18 PM

Related posts from TheWhir.com
Title Type Date Posted
Solar VPS Becomes Official Mirror for Centos and Ubuntu Web Hosting News 2013-04-16 11:03:34
Inerol Solutions Launches XEN VPS Hosting Service Web Hosting News 2013-04-08 12:32:06
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?