[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Multiple domain on VPS - rDNS for mail doesn't match mail server



Marjolein Katsma <tfyj8lv02@xxxxxxxxxxxxxx> said:
> But when someone sends mail to anaddress@xxxxxxxxxx the mail server says 
> it's javawoman.com.
> DNS has an MX record for hshelp.com, hshelp.com resolves to an IP - but the 
> rDNS for that IP is javawoman.com.
> 
> This non-match is the problem.

I don't know how to make sendmail respond differently for each domain, but you 
can change the greeting that sendmail (always) gives by adding the following 
to your sendmail macro configuration file:

define(`confDOMAIN_NAME',`hshelp.com')

Alternately, you could change your SMTP greeting message (which defaults to 
"$j Sendmail $v/$Z; $b"). In your server's case that expands to:

220 javawoman.com ESMTP Sendmail 8.12.10/8.12.10; Thu, 22 Jan 2004 10:04:40 
-0700 (MST)

(Notice that it inserts "ESMTP" whether you ask for it or not.)

The $j macro in the default greeting message is your server's official 
canonical name (which you can change by setting confDOMAIN_NAME).

To change your SMTP greeting message, you can add something like the following 
to your sendmail mc file:

define(`confSMTP_LOGIN_MSG',`This mail server is ready to go.')

AFAIK, sendmail always inserts "ESMTP" between the first and second word of 
the greeting, so the above would result in "This ESMTP mail server is ready to 
go."

If you are content with naming your server hshelp.com, and want your own 
greeting, you might add these two lines to your mc file:

define(`confDOMAIN_NAME',`hshelp.com')
define(`confSMTP_LOGIN_MSG',`$j This mail server is ready to go.')

(Notice that I added $j back into the greeting. It is a convention of sorts 
for the greeting to start with the server name ...) Unless I overlooked 
something, the above will result in a greeting of:

"220 hshelp.com ESMTP This mail server is ready to go."

Ben

(P.S. If you don't know what an mc [macro configuration] file is, mention it 
on this mailing list, and we'll tell you what to do. Be sure to indicate 
whether your server is VPS1 or VPS2 ... or something else.)

-- 
Bennett Lanford
ben@xxxxxxxxxxxxx


======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: