LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-15-2010, 01:54 PM   #1
swg1cor14
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
Sendmail from different virtual hosts on one ip


Ok I have 5 virtual hosts on one IP but only 1 domain (forwardconference.org) will be sending emails out to people....confirmations and such. The other sites may send out some emails...like back to my personal email address not hosted on this server. That works. But to people on like aol or yahoo or hotmail....it doesnt

Problem is, most people are not getting the emails. Mailq reports them being deffered for some reason. I'm having our ISP setup a PTR to forwardconference.org....does this mean all my emails from either of the sites....even if I put a different FROM: address in the php mail script...will come from forwardconference.org? Or should I just setup my server as its own SMTP server?
 
Old 01-15-2010, 02:23 PM   #2
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 16
If you are literally using sendmail, do yourself a favor and ditch it for postfix or exim. Emails going out from the sendmail binary with "sendmail" appeared to be coming from 127.0.0.1. This caused emails for us to be rejected 75% of the time (php's mail() function uses the sendmail binary). It *may* be fixable by changing some configuration options, but sendmail configuration is like trying to read Chinese. Both postfix and exim have human readable config files, and I found that postfix's configuration file is heavily documented (whereas exim you'll have to look more into documentation).

I've found that Exim is good for sending/receiving as I've used that on a WHM/Cpanel setup (configures everything). Postfix I'm not that familiar with, but it was good enough for me for sending mail out.

Both postfix (at least the Redhat EL5/Cent OS 5 packaged version) and Exim are drop in replacements of sendmail. On Redhat/CentOS you would so something like:

yum install postfix/exim
yum remove sendmail
system-switch-mail (choose postfix/exim)

Then you'd have to configure postfix/exim. They are MUCH easier to understand.
 
Old 01-15-2010, 02:48 PM   #3
swg1cor14
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
I'm already running postfix....but I get the same problem. The PTR is the only thing that will fix it....Supposedly....but since i can only have 1 PTR per domain and it has to point to one of the domains I use on that server....are ALL my email addresses going to come from the domain I choose to have the PTR relay back?
 
Old 01-15-2010, 04:17 PM   #4
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 16
The outgoing emails will usually only appear to come from the main ip, not the virtual ips, regardless of what sites you have to the virtual ips. The virtual ips are usually only for inbound connections. Outbound connections usually originate from your main ip.

I would try mxtoolbox.com. They have some very nice tools to make sure everything is setup correctly (dns, reverse dns, mx records, etc..), and to see if you are on any blacklists.

You could also try telneting localhost on port 25 as well as externally to make sure connections can be made. Mxtoolbox will also tell you if you are an open relay or not (if you are you'd need to configure the mail server). If you are an open relay, it's a sure way to get blacklisted, which can be a lengthy process to get off each one if you are.

With the PTR (which I'm assuming is the reverse dns) you only have to set this to your server's host name. Like server.mydomain.com, and do that on every IP you have. You also want to make sure you have an A record for the "server" sub domain that points to your main IP (or what ever hostname you have). You can see your host name by running "hostname" in SSH.

Last edited by lukesc; 01-15-2010 at 04:20 PM.
 
  


Reply



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
virtual hosts Four Ubuntu 1 03-12-2007 01:30 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Virtual Hosts in IRC and Sendmail js_530 Linux - Networking 0 08-07-2003 05:39 PM
Virtual Hosts Help please... vbp6us Linux - General 15 07-11-2003 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration