LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2008, 10:13 AM   #1
lensem
Member
 
Registered: Apr 2008
Location: Orlando, Fl
Posts: 52

Rep: Reputation: 15
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 0ff 1ff 2ff 3ff 4ff 5ff 6ff

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
 
Old 04-15-2008, 11:27 AM   #2
Wakil
LQ Newbie
 
Registered: Apr 2008
Distribution: Fedora core 8
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by lensem View Post
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 0ff 1ff 2ff 3ff 4ff 5ff 6ff

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


I havent seen any probs in your steps.
i'll check your steps later maybe i went through it quickly.
 
Old 04-15-2008, 11:44 AM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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
 
Old 04-16-2008, 12:35 AM   #4
madumadu
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
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.
 
Old 04-16-2008, 07:43 AM   #5
lensem
Member
 
Registered: Apr 2008
Location: Orlando, Fl
Posts: 52

Original Poster
Rep: Reputation: 15
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
 
Old 04-18-2008, 02:47 AM   #6
madumadu
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
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 "Connectip 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup sendmail outgoing only MartinMiller Linux - Server 2 01-11-2008 04:42 PM
sendmail and outgoing mail shafey Linux - Networking 1 11-16-2005 04:57 AM
Sendmail allow all outgoing domains.. newuser455 Linux - Software 2 06-15-2005 10:13 PM
sendmail outgoing mail karunesh Linux - General 0 11-17-2003 02:19 PM
Sendmail and outgoing dns mylde Linux - Networking 0 01-26-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration