Operating System - Linux
1829537 Members
2095 Online
109992 Solutions
New Discussion

Re: sendmail tweak required

 
SOLVED
Go to solution
Vijaya Kumar_3
Respected Contributor

sendmail tweak required

Hi
I have sendmail 8.10X running in my linux box named mysite.com. This is used ONLY for sending emails. if i have my domain name web.mysite.com. but my email address is resoving to user@web.mysite.com

My sendmail.cf entry:
Djwebmysite.com

My requirement is to set outgoing email addresses to user@mysite.com. but all emails send from this host to user@mysite.com

I can do it with "Djmysite.com" but all the mails sent to user@mysite.com are delivered locally instead of mx.mysite.com

your advice required
thanks in advance
vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
8 REPLIES 8
Stuart Browne
Honored Contributor
Solution

Re: sendmail tweak required

Look at the 'DM' configuration directive ("MASQUERADE_AS(`mysite.com')" mc entry)
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: sendmail tweak required

I'm attaching a script to build the hast databases so that Stuarts suggestion can be implemented.

The script may do a little more than you need.

You an also handle this with user entries in the files genericstable and virtusertable in /etc/mail . These files can let you essentially alias incoming and outcoming mail to a local user on the Linux box. An entry in /etc/aliases might do the trick to.
user@mysite.com: localuser

All these configuration files are tab delimited.

The build script will work either way and restart the sendmail daemon when done.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vijaya Kumar_3
Respected Contributor

Re: sendmail tweak required

great!!!!

It worked

Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: sendmail tweak required

now it works.

hey, it is sending mails to everyone except mysite.com. It is deferred always.

pls advice
thanks
vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Stuart Browne
Honored Contributor

Re: sendmail tweak required

Resolution of of 'mysite.com' appears to be a bit fubar.

You should be able to get around that (if it's to be delivered locally) by using a Cw line (or if you have an Fw line, an entry in the file it points to).
One long-haired git at your service...
Vijaya Kumar_3
Respected Contributor

Re: sendmail tweak required

nope,

it is going to be delivered remote

thanks for ur help
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: sendmail tweak required

i am sure it is not a resolution problem as it is saying remote [ mx.mysite.com] IP address etc. Finally it is saying deferred connection reset.

I tried connecting thro' "telnet mx.mysite.com 25" and i got connected but
Escape character is '^]'.
Connection closed by foreign host.

whats the issue?
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Stuart Browne
Honored Contributor

Re: sendmail tweak required

You didn't get the SMTP header line? that's un-good.

If the remote is a sendmail system, you should get a big-long-banner, something like:

220 mysite.com ESMTP Sendmail 8.12.8/8.12.5; Fri, 24 Oct 2003 14:08:19 +1000

If it's an exchange server, you should get something similar (or with lots of ***'s).

Either way, to be SMTP RFC complient, it has to throw you a line starting with 220.
One long-haired git at your service...