Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with Sendmail configuration

Scott Lokuta
Occasional Visitor

Need help with Sendmail configuration

root@tcd5007 / # sendmail -v scott@hotmail.com
this is a test
.
slokuta@hotmail.com... Connecting to eccmfw6a.ford.com. (tcp)...
slokuta@hotmail.com... trying address 192.28.163.30...
220 eccmfw6.ford.com ESMTP InterLock SMTP Gateway 4.2 ready at Wed, 21 Nov 2001)

Where do I go to change
eccmfw6a.ford.com to
vistsmtp.visteon.com

I've looked everywhere and can not find where eccmfw6.ford.com is defined.
I'll figure it out somehow.
11 REPLIES
S.K. Chan
Honored Contributor

Re: Need help with Sendmail configuration

It should be in /etc/mail/sendmail.cf file, make sure you restart sendmail after changing it.
Uday_S_Ankolekar
Honored Contributor

Re: Need help with Sendmail configuration

Hi,

check /etc/mail/sendmail.cf file
This perticular "ford" entry would be infront of DS flag in sendmail.cf
DS would be the mail relay host server. Change it to your messaging server name to send mail outside your domain

Goodluck
-USA..
Good Luck..
Craig Rants
Honored Contributor

Re: Need help with Sendmail configuration

Scott,
You could also try changing:
# who I masquerade as (null for no masquerading) (see also $=M)
DM

This way you could look like whoever you wanted to.

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Scott Lokuta
Occasional Visitor

Re: Need help with Sendmail configuration

Here is the DS entry in my sendmail.cf file.

# SMTP relay for unresolved @ addresses
#DSgtwy.ford.com
DSvistsmtp.visteon.com

If I send mail to slokuta@visteon.com it works fine. If I send it to slokuta@hotmail.com is uses eccmfw1.ford.com and does not work.

Does a MX record have to be added somewhere for slokuta@hotmail.com? Where would this be done at?
I'll figure it out somehow.
someone_4
Honored Contributor

Re: Need help with Sendmail configuration

do nslookup on eccmfw1.ford.com

also did you check ect/hosts?
Uday_S_Ankolekar
Honored Contributor

Re: Need help with Sendmail configuration

Hi,
Check the sendmail file of vistsmtp.visteon.com server. vistsmtp would be your local server.

-USA
Good Luck..
Steven Gillard_2
Honored Contributor

Re: Need help with Sendmail configuration

Check the MX records for vistsmtp.visteon.com:

$ nslookup
> set query=mx
> vistsmtp.visteon.com

I suspect you'll find the eccmfw1.ford.com is listed.

Regards,
Steve
Scott Lokuta
Occasional Visitor

Re: Need help with Sendmail configuration

Checked /etc/hosts for eccmfw1.ford.com and could not find it.

Tried the following:

root@tcd5007 /etc # nslookup
Default Name Server: eth171.vtcdb.visteon.com
Address: 136.17.156.28

> set query=mx
> vistsmtp.visteon.com
Name Server: eth171.vtcdb.visteon.com
Address: 136.17.156.28

vistsmtp.visteon.com canonical name = vsmtp02.vcs.visteon.com
> exit

Is it possible that if slokuta@hotmail.com is not found on vistsmtp.visteon.com it is routed to eccmfw1.ford.com?

Would a solution be to add a MX record for slokuta@hotmail.com on vistsmtp.visteon.com?
I'll figure it out somehow.
Uday_S_Ankolekar
Honored Contributor

Re: Need help with Sendmail configuration

Hi

What's the result of nslookup ee.... ford.com?
Is that getting resolve..??
Check your /etc/resolv.conf and /etc/nsswitch.conf.
Are you able to send mails to outside domain from this sever??
Good Luck..
Steven Gillard_2
Honored Contributor

Re: Need help with Sendmail configuration

My next step would be running a nettl trace to have a closer look at the DNS and SMTP traffic. If you've never done that before here's a crash course... this will limit the size of the trace file to 10Meg. Be warned if your system is busy it will fill this up quickly so you may want to test on a quieter system if you can.

To start tracing:

# nettl -tn pduin pduout -e ns_ls_ip -tm 10000 -f /tmp/smtp -s 1024

When this command returns, attempt to send your email. Then turn off tracing:

# nettl -tf -e all

Now to format the trace to display DNS and SMTP, create the following filter file:

filter udp_sport 53
filter udp_dport 53
filter tcp_sport 25
filter tcp_dport 25

And run netfmt as follows:

# netfmt -lnN -c /tmp/smtp.TRC0 | more

If you don't see anything, check /tmp/smtp.TRC1 as well.

Have a close look at the DNS traffic related to MX lookups or requests for information about vistsmtp.visteon.com and eccmfw1.ford.com. Remember if your system is busy there will probably be loads of other DNS traffic as well, but thats half the fun of network tracing...

Regards,
Steve
Robin Wakefield
Honored Contributor

Re: Need help with Sendmail configuration

Hi Scott,

Please try:

sendmail -d38.20 -bv scott@hotmail.com

This will show if there are any map lookups going on, e.g. mailertable

If anything interesting appears, please post.

Rgds, Robin.