The relay I'm sending to endlessly has this in its /var/log/maillog
EVERY time I send an e-mail
from one particular host (a dbserver with no dns):
Nov 13 11:15:13 mailhost sendmail[4199]: nADGFDxC004199: dbserver
[10.156.90.13] did not issue MAIL/EXPN/VRFY/ETRN during connection to
MTA
Corresponding entry in /var/log/maillog on the dbserver (yes, times
are a little out of sync but I don't
see what that has to do with anything):
Nov 13 11:17:02 localhost sendmail[3589]: nADGH2YG003589: from=root,
size=59, class=0, nrcpts=1,
msgid=<200911131617.nADGH2YG003...@localhost.localdomain>,
relay=root@localhost
Nov 13 11:17:02 localhost sendmail[3590]: nADGH2T1003590:
from=<r...@localhost.localdomain>, size=356, class=0, nrcpts=1,
msgid=<200911131617.nADGH2YG003...@localhost.localdomain>,
proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 13 11:17:02 localhost sendmail[3589]: nADGH2YG003589:
to=myn...@gmail.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30059, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (nADGH2T1003590 Message accepted for
delivery)
Nov 13 11:17:07 localhost sendmail[3592]: nADGH2T1003590: SYSERR
(root): mailhost.mydomain.com config error: mail loops back to me (MX
problem?)
Nov 13 11:17:07 localhost sendmail[3592]: nADGH2T1003590:
to=<myn...@gmail.com>, ctladdr=<r...@localhost.localdomain> (0/0),
delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=120356,
relay=mailhost.mydomain.com [10.156.80.131], dsn=5.3.5, stat=Local
configuration error
Nov 13 11:17:07 localhost sendmail[3592]: nADGH2T1003590:
nADGH7T1003592: DSN: Local configuration error
Nov 13 11:17:07 localhost sendmail[3592]: nADGH7T1003592:
to=<r...@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=31608, dsn=2.0.0, stat=Sent
Here's some other helpful information:
[myname@dbserver mail]$ egrep -v "^dnl|^$" sendmail.mc
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`SMART_HOST',`mailhost.domain.com')
define(`confDEF_USER_ID',``8:12'')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
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
AND: /etc/mail/local-host-names is empty on both the mail relay
(mailhost) and the
dbserver.
I really need a hand with this. Suggestions?
Thanks in advance.
> Nov 13 11:15:13 mailhost sendmail[4199]: nADGFDxC004199: dbserver
> [10.156.90.13] did not issue MAIL/EXPN/VRFY/ETRN during connection to
> MTA
> Corresponding entry in /var/log/maillog on the dbserver (yes, times
> are a little out of sync but I don't
> see what that has to do with anything):
It makes readers wary, if both logs correspond with each other.
> Nov 13 11:17:07 localhost sendmail[3592]: nADGH2T1003590: SYSERR
> (root): mailhost.mydomain.com config error: mail loops back to me (MX
> problem?)
> Nov 13 11:17:07 localhost sendmail[3592]: nADGH2T1003590:
> to=<myn...@gmail.com>, ctladdr=<r...@localhost.localdomain> (0/0),
> delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=120356,
> relay=mailhost.mydomain.com [10.156.80.131], dsn=5.3.5, stat=Local
> configuration error
> Nov 13 11:17:07 localhost sendmail[3592]: nADGH2T1003590:
> nADGH7T1003592: DSN: Local configuration error
Is the server name of the greeting message the same on both servers?
When you telnet smarthost smtp and telnet dbserver smtp.
-ska
telnet dbserver smtp from the dbserver itself gives me access to
sendmail port there.
telnet smarthost smtp from the dbserver does nothing; there's no host
defined as "smarthost"
anyplace.
It just does a "QUIT" (none of my other servers do this!). What's
wrong?
Thanks in advance for helping.
Dec 1 02:36:44 mailhost sendmail[21027]: NOQUEUE: connect from
dbserver [10.156.90.13]
Dec 1 02:36:44 mailhost sendmail[21027]: AUTH: available mech=PLAIN
LOGIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5
CRAM-MD5
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: Milter: no
active filter
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 220
localhost.localdomain ESMTP Sendmail 8.13.8/8.13.0; Tue, 1 Dec 2009
02:36:44 -0500
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: <-- EHLO
localhost.localdomain
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-
localhost.localdomain Hello dbserver [10.156.90.13], pleased to meet
you
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-
ENHANCEDSTATUSCODES
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-
PIPELINING
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: ---
250-8BITMIME
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-SIZE
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-DSN
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-ETRN
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250-
DELIVERBY
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 250 HELP
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: <-- QUIT
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: --- 221
2.0.0 localhost.localdomain closing connection
Dec 1 02:36:44 mailhost sendmail[21027]: nB17ai5G021027: dbserver
[10.156.90.13] did not issue MAIL/EXPN/VRFY/ETRN during connection to
MTA
MEANWHILE:... on the internal dbserver ('localhost' as it's referred
to here, and don't worry that the times are
a little out of sync):
Dec 1 02:38:18 localhost sendmail[24169]: nB17cImU024169: from=root,
size=47, class=0, nrcpts=1,
msgid=<200912010738....@localhost.localdomain>,
relay=root@localhost
Dec 1 02:38:18 localhost sendmail[24170]: NOQUEUE: connect from
localhost.localdomain [127.0.0.1]
Dec 1 02:38:18 localhost sendmail[24170]: AUTH: available mech=PLAIN
LOGIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5
CRAM-MD5
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: Milter: no
active filter
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 220
localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Tue, 1 Dec 2009
02:38:18 -0500
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: <-- EHLO
localhost.localdomain
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-
localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased
to meet you
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-
ENHANCEDSTATUSCODES
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-
PIPELINING
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: ---
250-8BITMIME
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-
SIZE
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-DSN
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-
ETRN
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250-
DELIVERBY
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250
HELP
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: <-- MAIL
From:<ro...@localhost.localdomain> SIZE=47
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250
2.1.0 <ro...@localhost.localdomain>... Sender ok
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: <-- RCPT
To:<der...@gmail.com>
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250
2.1.5 <der...@gmail.com>... Recipient ok
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: <-- DATA
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 354
Enter mail, end with "." on a line by itself
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170:
from=<ro...@localhost.localdomain>, size=346, class=0, nrcpts=1,
msgid=<200912010738....@localhost.localdomain>,
proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIit024170: --- 250
2.0.0 nB17cIit024170 Message accepted for delivery
Dec 1 02:38:18 localhost sendmail[24169]: nB17cImU024169:
to=der...@gmail.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30047, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (nB17cIit024170 Message accepted for
delivery)
Dec 1 02:38:18 localhost sendmail[24172]: nB17cIit024170: SMTP
outgoing connect on dbserver
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIiu024170: <-- QUIT
Dec 1 02:38:18 localhost sendmail[24170]: nB17cIiu024170: --- 221
2.0.0 localhost.localdomain closing connection
Dec 1 02:38:23 localhost sendmail[24172]: nB17cIit024170: SYSERR
(root): mailhost config error: mail loops back to me (MX problem?)
Dec 1 02:38:23 localhost sendmail[24172]: nB17cIit024170:
to=<der...@gmail.com>, ctladdr=<ro...@localhost.localdomain> (0/0),
delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=120346,
relay=mailhost [10.156.80.131], dsn=5.3.5, stat=Local configuration
error
Dec 1 02:38:23 localhost sendmail[24172]: nB17cIit024170: alias
postmaster => root
Dec 1 02:38:23 localhost sendmail[24172]: nB17cIit024170:
nB17cNit024172: DSN: Local configuration error
Dec 1 02:38:23 localhost sendmail[24172]: nB17cNit024172:
to=<ro...@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=31601, dsn=2.0.0, stat=Sent
Dec 1 02:38:23 localhost sendmail[24172]: nB17cNit024172: done;
delay=00:00:00, ntries=1
Dec 1 02:38:23 localhost sendmail[24172]: nB17cIit024170: done;
delay=00:00:05, ntries=1
Any ideas?
No, it isn't.
You can see why I'm so confused.
If I telnet dbserver 25 it will say "Connected to dbserver" and then
"220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8"
If (from the dbserver) I telnet mailhost 25 I get:
"Connected to mailhost."
and then:
"220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.0"
Thanks for helping.
I appreciate it.
On Mon, 07 Dec 2009 21:28:50 -0800, The Derfer wrote:
>> > > Is the server name of the greeting message the same on both
>> > > servers?- Hide quoted text -
>>
>> - Show quoted text -- Hide quoted text -
>>
>> - Show quoted text -
> No, it isn't.
> You can see why I'm so confused.
> If I telnet dbserver 25 it will say "Connected to dbserver" and then "220
> localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8"
> If (from the dbserver) I telnet mailhost 25 I get: "Connected to
> mailhost."
> and then:
> "220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.0"
Yes, the server name of the greeting message is the same on both servers.
Both dbserver and mailhost claim to be 'localhost.localdomain' in the 220
greeting message. Change one (or both) of those.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFLHeVdL6j7milTFsERAnrlAKCHGBsj94/mKelHIpyxwZhkCsTRQQCeKaXN
NOZxGe3H7WWKAlPXJgdTwH4=
=fBUL
-----END PGP SIGNATURE-----
Where?
Is /etc/hosts the only place?
Is there a sendmail config file that can alter this for sendmail
purposes
only?
Thanks for the advice.
Grateful.
On Tue, 08 Dec 2009 12:28:24 -0800, The Derfer wrote:
> Where?
> Is /etc/hosts the only place?
> Is there a sendmail config file that can alter this for sendmail
> purposes
> only?
Any of:
0. Setup proper reverse dns resolution for the primary ip address of the
box. Sendmail by default will probe the interfaces and use rdns to get
the
name.
1. Add the FQDN to /etc/hosts.
2. Add define(`confDOMAIN_NAME', `FQDN')dnl to the Sendmail macro config
(.mc) file. Build and install the Sendmail configuration file (.cf).
3. Manually change the Dj line in sendmail.cf to configure $j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFLHryzL6j7milTFsERAmonAJwIkC+Wnm1FcXvgJJKAi+b/B/EPzQCeIYd6
Qnvdq4Rx/HWIjbhJIjpC1eU=
=S+s0
-----END PGP SIGNATURE-----
Looks like sendmail considers the loopback interface as your primary
interfaces. I would follow Carl's advice #2.
-ska
I put (exactly) this:
define(`confdomainname.com', `dbserver.domainname.com')dnl
at the very end of sendmail.mc on dbserver
then "m4 sendmail.mc > sendmail.cf" (also on dbserver)
then restarted the daemon on dbserver.
And the exact same problem remains. All error messages are the same.
("domainname" above is anonymized but it's the company name).
Did I do something wrong?
Mail relay server still says: ".... did not issue MAIL/EXPN/VRFY/ETRN
during connection to MTA"
On Thu, 10 Dec 2009 01:17:48 -0800, The Derfer wrote:
> I put (exactly) this:
> define(`confdomainname.com', `dbserver.domainname.com')dnl
> at the very end of sendmail.mc on dbserver
should be confDOMAIN_NAME
define(`confDOMAIN_NAME', `dbserver.domainname.com')dnl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFLISvjL6j7milTFsERAvjGAJ98cJDJhlusmCV3zwAP26+CeJKmWQCfUwZ+
wDwMzStvoTE0jKZHN+ZsFgc=
=9s5/
-----END PGP SIGNATURE-----
OK thank you: that helped considerably.
Now some e-mails go out. To gmail, for example, they always go out
perfectly directly
from a "Mail us...@gmail.com" command line from dbserver.
Other times it's less predictable. See here:
Dec 11 13:57:13 mail-relay sendmail[16318]: nBBIvADZ016299:
to=<us...@comcast.net>, delay=00:00:03, xdelay=00:00:03, mailer=esmtp,
pri=120543, relay=mx2b.comcast.net. [76.96.30.116], dsn=5.0.0,
stat=Service unavailable
Dec 11 13:58:43 mail-relay sendmail[16496]: nBBIwh7A016496:
to=us...@comcast.net, ctladdr=user (1007/1007), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30045, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (nBBIwhcv01649 Message accepted for
delivery)
The first line is an e-mail "Mail us...@comcast.net" from the dbserver
command line
The second one is mailed the same way except from the mail relay host
itself.
Also curious is a different error, that of "User unknown":
Dec 11 15:27:08 mail-relay sendmail[27330]: nBBKR5nv027319:
to=<us...@oracle.com>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp,
pri=120552, relay=rcsinet11.oracle.com. [148.87.113.123], dsn=5.1.8,
stat=User unknown
Pertaining to the above, it originated as "Mail us...@oracle.com" from
dbserver's command line as user "oracle".
Directly from the mail relay server's command line it reaches its
destination.
Does anyone know how to fix this?
Thanks again for all the help. I'm way ahead of where I was last
week thanks to everyone's
input.
Someone please!
If I can get this much to work it'll work ... period!
Thank you ! ! !
> Dec 11 13:57:13 mail-relay sendmail[16318]: nBBIvADZ016299:
> to=<us...@comcast.net>, delay=00:00:03, xdelay=00:00:03, mailer=esmtp,
> pri=120543, relay=mx2b.comcast.net. [76.96.30.116], dsn=5.0.0,
> stat=Service unavailable
This is a reply from mx2b.comcast.net. See RFC 1893 what 5.0.0 means.
> Dec 11 13:58:43 mail-relay sendmail[16496]: nBBIwh7A016496:
> to=us...@comcast.net, ctladdr=user (1007/1007), delay=00:00:00,
> xdelay=00:00:00, mailer=relay, pri=30045, relay=[127.0.0.1]
> [127.0.0.1], dsn=2.0.0, stat=Sent (nBBIwhcv01649 Message accepted for
> delivery)
This is a reply from your own server @ mail-relay telling you it has
accepted the message for future delivery. I would bet you'll find the
same error as before later in the logs.
> Also curious is a different error, that of "User unknown":
>
> Dec 11 15:27:08 mail-relay sendmail[27330]: nBBKR5nv027319:
> to=<us...@oracle.com>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp,
> pri=120552, relay=rcsinet11.oracle.com. [148.87.113.123], dsn=5.1.8,
> stat=User unknown
What is curious? rcsinet11.oracle.com. said: RFC1893 permanent failure
"Bad sender's system address". It is its right as to tell you, that
the recipient does not exist.
> Does anyone know how to fix this?
Use a proper mail address.
-ska
But why would that error happen the mail is sent from the dbserver and
not
if sent from the mail relay box itself?
I get two different results.