1753482 Members
4293 Online
108794 Solutions
New Discussion юеВ

Sendmail Help

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

Sendmail Help

I have sendmail-8.12 on Linux box and try to get sendmail out. It fails, from maillog the errors are:

-----------------------------
Mar 17 16:16:23 rhstest sendmail[30905]: k2HLGNil030905: from=root, size=40, cla
ss=0, nrcpts=1, msgid=<200603172116.k2HLGNil030905@rhstest.prpi.com>, relay=root@localhost
Mar 17 16:16:23 rhstest sendmail[30907]: k2HLGNLi030907: tcpwrappers (localhost.
localdomain, 127.0.0.1) rejection
Mar 17 16:16:23 rhstest sendmail[30905]: k2HLGNil030905: to=schen@something.com, ctla
ddr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30040, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
--------------------------------

My configurations are:

1) company has its own email system, and I just want to add one more for backup. thus sendmail.cf does not forward mail to company internal exchange server in order to hit Internet.

2) ISP dns has been registered with public IP with mailx record; internal FW has nat setting point to this server local IP

3) company DNS server does not have this server as mx server, but a node

4) Linux sendmail.cf is correct in all setting, including DS pointing to this registered domain name

I know I am missing something, but cannot figure it out.

Any comment will be appreciated!

Steven

Steve
3 REPLIES 3
Geoff Wild
Honored Contributor
Solution

Re: Sendmail Help

It says "stat=Service unavailable"

are you sure it is running?

Can you try:

sendmail -bv -d0.12 you@yourdomain.com


Also, since this is Linux - it should be i the linux forum :)

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: Sendmail Help

Shalom,

Item 4 is probably the issue.

The server the DS record is pointing to must be a server that explicitly permits relay from the machine you are working with.

Sendmail has a file called /etc/mail/access

Listings in it look like this:

192.168.0.10 RELAY

Assuming that the target server is a sendamil server, the above example has this machines IP address then relay status.

Merely aiming the domain at the MX server is not enough, a trust relationsip needs to be established first.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Chen_1
Super Advisor

Re: Sendmail Help

Thanks for the help.

Geoff:
sendmail -bv returns sth like:

------------------------------
Version 8.12.11
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASL SCANF STARTTLS TCPWRAPPERS
USERDB USE_LDAP_INIT
OS Defines: ADDRCONFIG_IS_BROKEN HASFCHOWN HASFCHMOD HASFLOCK
HASGETDTABLESIZE HASINITGROUPS HASLSTAT HASNICE HASRANDOM
HASRRESVPORT HASSETREGID HASSETREUID HASSETRLIMIT HASSETSID
HASSETVBUF HASURANDOMDEV HASSTRERROR HASUNAME HASUNSETENV
HASWAITPID IDENTPROTO NEEDSGETIPNODE REQUIRES_DIR_FSYNC
USE_DOUBLE_FORK USE_SIGLONGJMP
Kernel symbols: /boot/vmlinux
Conf file: /etc/mail/submit.cf (default for MSP)
Conf file: /etc/mail/sendmail.cf (default for MTA)
Pid file: /var/run/sendmail.pid (default)
libsm Defines: SM_CONF_LDAP_MEMFREE SM_CONF_LONGLONG SM_CONF_MEMCHR
SM_CONF_MSG SM_CONF_SEM SM_CONF_SIGSETJMP SM_CONF_SHM
SM_CONF_SSIZE_T SM_CONF_STDDEF_H SM_CONF_SYS_CDEFS_H
SM_CONF_UID_GID SM_HEAP_CHECK SM_OS=sm_os_linux SM_VA_STD

....
... deliverable: mailer esmtp

*********************************

Steven,

/etc/mail/access file:

localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
-***************************

I am trying to get it directly sending mail out, not relay to internal exchange server before hitting Internet.

Can this configuration work? Or have to have this server directly exposed to Internet?

Thanks!


Steve