- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: sendmail not relaying
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2004 06:38 AM
тАО08-26-2004 06:38 AM
Running with RH AS3.0 on an Intel.
Working with sendmail and trying to get it to relay to a Smart host. I set the DS variable to the name of the SMART HOST and then recycle the sendmail process - service sendmail restart.
It is still trying to send to localhost - doesn't go anywhere. What am I missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2004 02:36 PM
тАО08-26-2004 02:36 PM
Solutionmailq
Is the mail queuing up or going to the bit bucket
sendmail -v -q interactively push the queue and get the error messages
sendmail -v -d8 -d38 someone@localhost
type some text
.
Pretty much get the same diags. The error message will be meaningful and can be acted upon for correction.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 12:12 AM
тАО08-27-2004 12:12 AM
Re: sendmail not relaying
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.copy
vi /etc/mail/sendmail.mc
set the line below without dnl at the begining:
define(`SMART_HOST',`atlsmtpx.hp.com')dnl
m4 /etc/mail/sendmail.mc \
> /etc/mail/sendmail.cf
It should now send emails trough your smart host, in my case atlsmtpx.nokia.com.
If you want your linux accept incomming emails from another host, REMOVE a line in sendmail.mc like this before running m4:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
If you have postfix(replacement for sendmail in RH) configured as your MTA, sendmail configuration won├В┬┤t make any effect.
Cel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 12:13 AM
тАО08-27-2004 12:13 AM
Re: sendmail not relaying
After changing sendmail, of course there is a need for restarting:
# service sendmail restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 03:00 AM
тАО08-27-2004 03:00 AM
Re: sendmail not relaying
me@mydom.com... Connecting to [127.0.0.1] via relay...
220 mybox.mydom.com ESMTP Sendmail 8.12.10/8.12.10; Fri, 27 Aug 2004 08:50:46 -0600
>>> EHLO mybox.mydom.com
250-mybox.mydom.com Hello mybox.mydom.com [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:
250 2.1.0
>>> RCPT To:
>>> DATA
250 2.1.5
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i7REokbJ006098 Message accepted for delivery
myfirst.mylast@myotherdom.com... Sent (i7REokbJ006098 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 mybox.mydom.com closing connection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 06:52 AM
тАО08-27-2004 06:52 AM
Re: sendmail not relaying
These sendmail stuff gets me crazy sometimes.
I remembered that you have to say what domains you allow RELAY in /etc/mail/access:
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
bra.mydomain.com RELAY
If this not help at all i can attach my sendmail.mc and cf for you to compare with.
Celso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 07:00 AM
тАО08-27-2004 07:00 AM
Re: sendmail not relaying
Then see if your m4 script is working right.
Attaching example that WORKS.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:07 AM
тАО08-27-2004 08:07 AM
Re: sendmail not relaying
This linux system should do nothing more that send its locally generated mail to a mail server.
I have defined the SMART HOST in the sendmail.cf file, I have defined it in the sendmail.mc file and then use m4 to generate a new cf file. (And as always, restart service when changes happen).
Mail I send out from this Linux system is still connecting to 127.0.0.1 (itself) and the mail goes nowhere!
I can resolve forward and backwards.
I have setup, defined, and compiled mailertable with no difference in the relay.
I am missing something, but what?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:22 AM
тАО08-27-2004 08:22 AM
Re: sendmail not relaying
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`relay_based_on_MX')dnl
these two lines cannot have dnl in the beggining.
Celso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:42 AM
тАО08-27-2004 08:42 AM
Re: sendmail not relaying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:48 AM
тАО08-27-2004 08:48 AM
Re: sendmail not relaying
See also if relaying is allowed at all in /etc/mail/access as i mentioned above.
Celso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:53 AM
тАО08-27-2004 08:53 AM
Re: sendmail not relaying
Did a makemap hash /etc/mail/access.db < /etc/mail/access when I made changes. Right now the only entries in this file are my system name and localhost and 127.0.0.1. Need to be able to relay local mail from my system to the mail server. (I emphasize local mail - my system will not accept inbound mail, it only sends out, at least that is what I am trying to do)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:57 AM
тАО08-27-2004 08:57 AM
Re: sendmail not relaying
- relay being resolved as localhost, ugly, but possible;
- mailertable configured;
- iptables redirection;
- ...stuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 08:57 AM
тАО08-27-2004 08:57 AM
Re: sendmail not relaying
A quick glance shows that most of the differences are because I am leaving the comments in my file.
I have attached the diff file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2004 03:58 PM
тАО08-27-2004 03:58 PM
Re: sendmail not relaying
This is kind of a step back from the other responses but just to be sure you have it covered.... Is there an entry for your SMART HOST in your /etc/hosts file. Have you checked basic connectivity with it, ie: ping?
Try doing a telnet to port 25 on the relay host and see what kind of a response you get. This way you can be sure your issue is based on your host and not something like the SMART HOST isn't accepting relays from you.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2004 11:36 AM
тАО08-29-2004 11:36 AM
Re: sendmail not relaying
DEFINE(`SMART_HOST', `[my.relay.server]');
This prevents Sendmail trying to do it's usual A/MX lookup's to get the appropraite mail server for that name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2004 06:36 AM
тАО08-30-2004 06:36 AM
Re: sendmail not relaying
Sendmail mail from my Linux system is still connecting to 127.0.0.1 as seen by the verbose output. But now it is relaying that mail to the SMART HOST. It does not show this action (as seen in the verbose output of sendmail -v -d8.99 -d38.99) but it is getting there, somehow.
The mail is being received in my Exchange mailbox which is what I need.
Any ideas of why this is happening?
Many thanks to all!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2004 07:06 AM
тАО08-30-2004 07:06 AM
Re: sendmail not relaying
It could be because MX records in DNS is saying who is the mailer exchanger for de destination domain.
Other crazy thing i could imagine is some redirection in your MTA(virtualusertable), or in Iptable, run iptable -L to see the security policy.
Perhaps your central mail was not accepting emails from your domain, and now someone has fixed that.
Sendmail will not accept mail for local delivery for hosts that are not specified by name in /etc/mail/local-host-names. If you included your smart host here, it is why it started to work(and you still have the smart relay not working as it is suposed to be)
Celso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2004 08:10 AM
тАО10-14-2004 08:10 AM
Re: sendmail not relaying
define(`SMART_HOST',`atlsmtpx.hp.com')dnl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2004 08:15 AM
тАО10-14-2004 08:15 AM