LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-14-2010, 06:32 PM   #1
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 16
Configure mail server for outgoing only


I really need help with this...

We run a service in which a customer types in a form and gets a confirmation email after submitting the form. We are on a server with no control panel. We are running CentOS 5.

When we did our testing sendmail sent mails just fine and I was able to receive them. After we went live we found that 75% of our emails are being rejected by other mail servers. Doing research is seems that the headers indicate the emails are coming from 127.0.0.1.

We need to correct this problem, as well as do everything we can to reduce the risk of our mails being marked as spam. We do not receive mail on this server, but rather send mail. We have another email server on another server for receiving mail for our domain, which is already configured with cPanel (which doesn't have a problem).

We can not use cPanel on this server because of certain security restrictions.

I know that sendmail is cryptic to configure. We are willing to switch to Exim if necessary.

As far as installing Exim, I understand it's as easy as:

yum install exim
yum remove sendmail
system-switch-mail (if installed)

But as far as setting up Exim for our needs, we need help on this.

If anyone is willing to help me with this ASAP, I'd really appreciate it. I'm having clients chomping at the bit because their clients email confirmations are bouncing back.
 
Old 01-14-2010, 07:30 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,223

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
If memory serves, you need to set up masquerading. I believe the "DM" directive in your sendmail.cf file, containing your domain name. Be aware, though, that if you're shoveling out a large amount of email, you may be flagged as a spammer by other mail servers, and they'll blacklist you.

Google can point you to some things, as well as some threads on here, too:
http://www.linuxquestions.org/questi...21/#post778024
http://www.cyberciti.biz/tips/sendma...ion-howto.html

Of course, you have to know what to look for, before you can search for it. Sendmail and/or postfix have their own particular kind of black magic involved with them, but for good reason. They WORK, and work well. It's worth investing in a book or two on the subject.
 
Old 01-15-2010, 11:23 AM   #3
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 16
If I went the Exim route what are the pros cons to using it vs sendmail? Does it try to deliver a mail again if it's rejected? How would I go about setting this up?
 
Old 01-15-2010, 12:28 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,223

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by lukesc View Post
If I went the Exim route what are the pros cons to using it vs sendmail? Does it try to deliver a mail again if it's rejected? How would I go about setting this up?
No idea. I've never used anything but sendmail, and have been very happy with it, but I'm sure there are lots of how-to guides available via Google.
 
Old 01-15-2010, 02:24 PM   #5
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 16
Well I got some help and everything is setup and ready to go with postfix . Had somewhat of a time restraint.

Last edited by lukesc; 01-16-2010 at 12:31 AM.
 
Old 01-15-2010, 09:11 PM   #6
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:59 PM.
 
Old 01-16-2010, 12:32 AM   #7
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Smartpatrol View Post
Too bad Exim is an excellent MTA and much easier to configure than sendmail.
I'm using postfix not sendmail . I do agree that Exim is pretty awesome. I hear good things about postfix as well. I just needed it send out confirmation emails though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which qmail log file details outgoing mail? (have huge outgoing mail volume) hilljockey Linux - Server 2 12-08-2008 04:26 PM
How to Trap all outgoing mail of all user of my mail server singh_chitranjan Linux - Server 1 07-09-2008 06:15 AM
Outgoing Only mail server using Postfix opnsrc Linux - Networking 0 06-15-2006 10:37 AM
Using mail client with unknown outgoing server allelopath Linux - Networking 1 06-05-2006 06:02 PM
Can i copy outgoing mail on the server? Dman33 Linux - Software 1 07-09-2004 11:45 AM


All times are GMT -5. The time now is 10:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration