1753913 Members
9138 Online
108810 Solutions
New Discussion юеВ

Re: sendmail problem

 
Ralf Buchhold
Regular Advisor

sendmail problem

Hello

in /var/adm/syslog/mail.log is the following message (and no mails are delievered)

message queued for future delivery

What can I do ?
Thankd Ralf
2 REPLIES 2
RAC_1
Honored Contributor

Re: sendmail problem

Run mailq and check if the mail is sitting there. This should give some idea what it is doing.

Also if you are using smart relay, are there any problems with that.

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: sendmail problem

Mail is not getting off your system.

verify with this command:

mailq

verify and find out why with this command:

sendmail -v -q

That will try and process the queue and tell you the problem.

Two main areas of possible cause:

1) DNS resolution doesn't work, can't resolve host name, mail doesn't go anywhere. Look at /etc/resolv.conf and make sure nslookup or dig actually gives you valid answer.

2) Mail forwarding: set your mail to relay off an smtp/exhange/whatever server. DS directive

in sendmail.cf

DShostnameofrelayserver
or

DS
[ ip address of relay server]

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Re-run prior steps and watch the mail get delivered.

Note: the target server in th DS directive must be explicitly set to allow you to relay mail. Handle that yourself or with the server admin before you start.

Because the relay configuration can be limited to a single IP address it is not a spam relay risk.

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