LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2008, 06:22 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Issue during Sendmail Setup??


Hello Guys,

I am newbie to Sendmail.I just read one good doc and tried setting up sendmail.I installed latest sendmail packages.
My /etc/mail/sendmail.mc file is :
Code:
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
I ran the command:
Code:
#m4 sendmail.mc > sendmail.cf

[root@pe ~]# service sendmail restart
Shutting down sendmail:                                    [FAILED]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]
[root@pe ~]#
I tried sending mail to my company email-is but failed to send it.
The sendmail logs are:
Code:
Sep 18 15:10:41 pe sendmail[14266]: alias database /etc/aliases rebuilt by root
Sep 18 15:10:41 pe sendmail[14266]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Sep 18 15:13:19 pe sendmail[14328]: alias database /etc/aliases rebuilt by root
Sep 18 15:13:19 pe sendmail[14328]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Sep 18 15:43:41 pe sendmail[14615]: m8IADevv014615: from=root, size=82, class=0, nrcpts=2, msgid=<200809181013.m8IADevv014615@pe.im.logica.com>, relay=root@localhost
Sep 18 15:43:41 pe sendmail[14615]: m8IADevv014615: to=oman@gmail.com,oman@logica.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=60082, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Can Somebody help me in setting the mail server?Am I missing something?

Last edited by your_shadow03; 09-18-2008 at 06:24 AM.
 
Old 09-19-2008, 09:38 AM   #2
jerrydr
LQ Newbie
 
Registered: Nov 2006
Location: Pahrump, NV
Distribution: SuSE, Slackware
Posts: 15

Rep: Reputation: 0
RE: sendmail issues

I do not see a public address or a NAT routable private address in your setup. Also, unless you have a public IP address which lists your domain in a reverse lookup, many mail servers will reject your mail anyway. You will need to relay your outbound mail through your ISP's mail hub.
 
Old 09-19-2008, 09:54 AM   #3
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 150

Rep: Reputation: 27
On your linux mail server, type the following, and send the ouput/results

netstat -anop | grep LIST

mailq

tail -50 /var/log/maillog

mail -v oman@gmail.com < /dev/null




OK ?
 
Old 09-22-2008, 08:40 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Code:
[root@pe ~]# netstat -anop | grep LIST
tcp        0      0 0.0.0.0:2401                0.0.0.0:*                   LISTEN      8430/xinetd         off (0.00/0/0)
tcp        0      0 0.0.0.0:673                 0.0.0.0:*                   LISTEN      14910/rpc.mountd    off (0.00/0/0)
tcp        0      0 0.0.0.0:2049                0.0.0.0:*                   LISTEN      -                   off (0.00/0/0)
tcp        0      0 0.0.0.0:40994               0.0.0.0:*                   LISTEN      -                   off (0.00/0/0)
tcp        0      0 0.0.0.0:805                 0.0.0.0:*                   LISTEN      2320/ypserv         off (0.00/0/0)
tcp        0      0 0.0.0.0:5801                0.0.0.0:*                   LISTEN      16048/Xvnc          off (0.00/0/0)
tcp        0      0 0.0.0.0:5901                0.0.0.0:*                   LISTEN      16048/Xvnc          off (0.00/0/0)
tcp        0      0 0.0.0.0:814                 0.0.0.0:*                   LISTEN      2331/rpc.ypxfrd     off (0.00/0/0)
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      14836/portmap       off (0.00/0/0)
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      2802/perl           off (0.00/0/0)
tcp        0      0 0.0.0.0:6001                0.0.0.0:*                   LISTEN      16048/Xvnc          off (0.00/0/0)
tcp        0      0 0.0.0.0:657                 0.0.0.0:*                   LISTEN      14893/rpc.rquotad   off (0.00/0/0)
tcp        0      0 0.0.0.0:726                 0.0.0.0:*                   LISTEN      2240/rpc.statd      off (0.00/0/0)
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      15877/cupsd         off (0.00/0/0)
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      3134/tcpserver      off (0.00/0/0)
tcp        0      0 0.0.0.0:829                 0.0.0.0:*                   LISTEN      2344/ypbind         off (0.00/0/0)
tcp        0      0 :::80                       :::*                        LISTEN      15927/httpd         off (0.00/0/0)
tcp        0      0 :::6001                     :::*                        LISTEN      16048/Xvnc          off (0.00/0/0)
tcp        0      0 :::22                       :::*                        LISTEN      2524/sshd           off (0.00/0/0)
tcp        0      0 :::443                      :::*                        LISTEN      15927/httpd         off (0.00/0/0)
unix  2      [ ACC ]     STREAM     LISTENING     5725   2717/dbus-daemon-1  /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     5649   2679/xfs            /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     7612   3436/gdm-binary     /tmp/.gdm_socket
unix  2      [ ACC ]     STREAM     LISTENING     7723   3645/X              /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     1247957 16048/Xvnc          /tmp/.X11-unix/X1
unix  2      [ ACC ]     STREAM     LISTENING     5101251 17058/gconfd-2      /tmp/orbit-root/linc-42a2-0-19a630c6dbdd9
unix  2      [ ACC ]     STREAM     LISTENING     5589   2646/gpm            /dev/gpmctl
[root@pe ~]#
Code:
[root@pe ~]# mailq
/var/spool/mqueue is empty
                Total requests: 0
[root@pe ~]#
Code:
[root@pe ~]# tail -50 /var/log/maillog
Sep 22 04:51:20 pe sm-msp-queue[4666]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=00:49:05, xdelay=00:00:00, mailer=relay, pri=120823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 05:51:20 pe sm-msp-queue[5190]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=01:49:05, xdelay=00:00:00, mailer=relay, pri=210823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 qq temporary problem (#4.3.0)
Sep 22 06:51:20 pe sm-msp-queue[5715]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=02:49:05, xdelay=00:00:00, mailer=relay, pri=300823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 07:51:20 pe sm-msp-queue[6239]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=03:49:05, xdelay=00:00:00, mailer=relay, pri=390823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 08:51:20 pe sm-msp-queue[6763]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=04:49:05, xdelay=00:00:00, mailer=relay, pri=480823, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 08:51:20 pe sm-msp-queue[6763]: m8LMWFmL004068: m8M3LKOS006763: sender notify: Warning: could not send message for past 4 hours
Sep 22 08:51:20 pe sm-msp-queue[6763]: m8M3LKOS006763: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32129, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 09:51:20 pe sm-msp-queue[7287]: m8M3LKOS006763: to=root, delay=01:00:00, xdelay=00:00:00, mailer=relay, pri=122129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 qq temporary problem (#4.3.0)
Sep 22 09:51:21 pe sm-msp-queue[7287]: m8LMWFmL004068: to=root, ctladdr=root (0/0), delay=05:49:06, xdelay=00:00:00, mailer=relay, pri=570823, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (ok 1222057281 qp 7290)
Sep 22 10:51:21 pe sm-msp-queue[7824]: m8M3LKOS006763: to=root, delay=02:00:01, xdelay=00:00:01, mailer=relay, pri=212129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 qq temporary problem (#4.3.0)
Sep 22 11:51:21 pe sm-msp-queue[8350]: m8M3LKOS006763: to=root, delay=03:00:01, xdelay=00:00:00, mailer=relay, pri=302129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 12:51:21 pe sm-msp-queue[8939]: m8M3LKOS006763: to=root, delay=04:00:01, xdelay=00:00:00, mailer=relay, pri=392129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 13:51:21 pe sm-msp-queue[9463]: m8M3LKOS006763: to=root, delay=05:00:01, xdelay=00:00:00, mailer=relay, pri=482129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 14:51:21 pe sm-msp-queue[10184]: m8M3LKOS006763: to=root, delay=06:00:01, xdelay=00:00:00, mailer=relay, pri=572129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 15:51:21 pe sm-msp-queue[10708]: m8M3LKOS006763: to=root, delay=07:00:01, xdelay=00:00:00, mailer=relay, pri=662129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 16:51:21 pe sm-msp-queue[11235]: m8M3LKOS006763: to=root, delay=08:00:01, xdelay=00:00:00, mailer=relay, pri=752129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:42:54 pe sendmail[11704]: alias database /etc/aliases rebuilt by root
Sep 22 17:42:54 pe sendmail[11704]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Sep 22 17:42:55 pe sendmail[11709]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Sep 22 17:42:55 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:42:55 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:42:55 pe sm-msp-queue[11718]: starting daemon (8.13.1): queueing@01:00:00
Sep 22 17:42:55 pe sm-msp-queue[11719]: m8M3LKOS006763: to=root, delay=08:51:35, xdelay=00:00:00, mailer=relay, pri=842129, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:43:00 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:00 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:05 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:05 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:10 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:10 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:15 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:15 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:20 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:20 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:25 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:25 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:30 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:30 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:35 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:35 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:40 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:40 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:45 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Sep 22 17:43:45 pe sendmail[11709]: daemon MTA: problem creating SMTP socket
Sep 22 17:43:45 pe sendmail[11709]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
Sep 22 17:50:13 pe sendmail[11847]: m8MCKCV5011847: from=root, size=34, class=0, nrcpts=1, msgid=<200809221220.m8MCKCV5011847@pe.im.logica.com>, relay=root@localhost
Sep 22 17:50:13 pe sendmail[11847]: m8MCKCV5011847: to=localhost, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30034, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:50:41 pe sendmail[11853]: m8MCKftL011853: from=root, size=55, class=0, nrcpts=2, msgid=<200809221220.m8MCKftL011853@pe.im.logica.com>, relay=root@localhost
Sep 22 17:50:41 pe sendmail[11853]: m8MCKftL011853: to=root@localhost,localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60055, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
Sep 22 17:55:48 pe sendmail[11900]: m8MCPm6D011900: from=root, size=57, class=0, nrcpts=2, msgid=<200809221225.m8MCPm6D011900@pe.im.logica.com>, relay=root@localhost
Sep 22 17:55:48 pe sendmail[11900]: m8MCPm6D011900: to=root@localhost,10.14.236.169, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60057, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection reset by [127.0.0.1]
[root@pe ~]#
Code:
[root@pe ~]# mail -v oman@gmail.com < /dev/null
No message, no subject; hope that's ok
oman@gmail.com... Connecting to [127.0.0.1] via relay...
oman@gmail.com... Deferred: Connection reset by [127.0.0.1]
Closing connection to [127.0.0.1]
[root@pe ~]#
 
Old 09-25-2008, 08:09 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Hey linuxgurusa Where have you gone?
need Ur Help Dude!
 
Old 09-25-2008, 08:14 AM   #6
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 150

Rep: Reputation: 27
Howzit man

What I can see from the results, it seems like your "sendmail restart" does not execute propperly, since the smtp port is running allready when sendmail wants to start up again.

" opendaemonsocket: daemon MTA: cannot bind: Address already in use
"

Your mail queue is clean, so your mail is sent out ... or not ?

What is your current issues.

IF YOU CAN, restart the server , and see if you still have your current issues, if so , list the current issues still ok ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 02:10 PM
Sendmail Issue! Atif_Khan Linux - Networking 5 02-16-2005 02:05 PM
sendmail issue archangel Linux - Distributions 4 11-14-2002 03:33 AM
sendmail issue archangel Linux - General 6 11-13-2002 09:17 AM
sendmail issue archangel Linux - Networking 1 11-13-2002 06:14 AM


All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration