Outgoing sendmail issue
We normally run our servers with sendmail disabled, but we now have a need to route some mail to a mail server within our company for distribution. The mail however is not leaving the server ???
I have verified access to the mail server from each server we are trying to send mail from. The sendmail config file contains: cat /etc/sysconfig/sendmail DAEMON=no QUEUE=15m I've added the Smart Relay to the sendmail.cf file: # "Smart" relay host (may be null) DSmailhost.mailserver.com .... sendmail software installed: rpm -qa |grep -i sendma sendmail-8.13.1-3.2.el4 # chkconfig sendmail --list sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off service sendmail status sendmail (pid 31533 31524) is running... ps -ef |grep mail root 14130 16863 0 10:53 pts/0 00:00:00 grep mail root 31524 1 0 Apr14 ? 00:00:00 sendmail: Queue runner@00:15:00 for /var/spool/mqueue smmsp 31533 1 0 Apr14 ? 00:00:00 sendmail: Queue runner@00:15:00 for /var/spool/clientmqueue Anyone know what I am missing to get this to work ? For security reasons our security group does not want the sendmail daemon to run.. Thanks |
Quote:
I havent seen any probs in your steps. i'll check your steps later maybe i went through it quickly. |
Can you clarify? Is the mail staying on the various hosts that you are trying to send from or the mail server that is distributing the mail?
Forrest |
Looks to me that u have not configured sendmail to work, yes u have started the service, but what are the settings to allow mail to flow check on /etc/mail/access, what is in that file. u need to allow your network ips to be accepted to send mail out. Good luck.
|
The mail is being generated on the individual servers, and staying on those servers, it is not being routed to the mail server:
Apr 13 07:59:46 spctel141 sendmail[15412]: m3DBxkKk015412: to=CVGcpu@perf.dcd.convergys.com, ctladdr=adm (3/4), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=42938, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Apr 13 11:58:02 spctel141 sendmail[28528]: m3DFw2jg028528: from=adm, size=19275, class=0, nrcpts=1, msgid=<200804131558.m3DFw2jg028528@spctel141.spc.speechport.net>, relay=adm@localhost Apr 13 11:58:02 spctel141 sendmail[28528]: m3DFw2jg028528: to=CVGcpu@perf.dcd.convergys.com, ctladdr=adm (3/4), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=49275, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] The /etc/mail/access server contains: # cat ./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 |
i see from the logs that the localhost is not allowed to pass mail though,and "u are also using an old version, u need to update". In the old version we use ip_allow file in /etc/mail, there is also a file called sendmail.mc which u need to go through to allow 127.0.0.1, can u also do "nmap -sS 127.0.0.1" see what ports are open, then also do the same for the ip u have given the network card(s). But, if u can, update to the new sendmail (dont know what unix/linux version) u are using but u need to upgrade to the new version, and that will be easy to work with, and pliz note that in the new version they have dropped "ip_allow", and are using "access" file, and the format for allowing is "Connect:(ip address) RELAY" in that order, pliz note that also in the sendmail.mc file after making any changes, u need to recompile it using the command "make -C /etc/mail" then restart the service.
|
All times are GMT -5. The time now is 07:12 PM. |