Hi,
Pretty new here so bare with me.
I seem to have a problem with sendmail when system users send mail.
Works perfectly sending from outside, works perfectly telnetting to localhost manually or when sending mail via a client through localhost but whenever a system user creates a mail it stacks up in /var/spool/mqueue-client and status is always "Deferred: Connection refused by [127.0.0.1]" increasing sendmails log level doesn't give any more clues.
Happens for
From To
Anacron <root> root
www-data www-data
and
Mail Delivery Subsystem <MAILER-DAEMON> www-data (which is a failure to deliver message for www-data, so I know sendmail is trying but can't)
Searched everywhere but still cannot find any answer for it.
If it was simply messages from root I wouldn't worry to much, in webmin you can view the messages in the queue OK and delete them but as seen www-data is failing which means any script I write for my webserver creates the mail OK both in Perl using sendmail and php using sendmail but cannot get delivered as sendmail is failing to accept it.
I've tried adding all the users to trusted-users in sendmail, no change, I've tried changing the mail queue as this is a custom one from the submit files in /etc/mail but nothing so far has worked. Setup for sendmail is pretty much unchanged from default other than adding my domains in to accept incoming and outgoing mail, squirrelmail does not have a problem which is the only web based system I can get work.
Many thanks for any suggestions.
Mike
Pretty new here so bare with me.
I seem to have a problem with sendmail when system users send mail.
Works perfectly sending from outside, works perfectly telnetting to localhost manually or when sending mail via a client through localhost but whenever a system user creates a mail it stacks up in /var/spool/mqueue-client and status is always "Deferred: Connection refused by [127.0.0.1]" increasing sendmails log level doesn't give any more clues.
Happens for
From To
Anacron <root> root
www-data www-data
and
Mail Delivery Subsystem <MAILER-DAEMON> www-data (which is a failure to deliver message for www-data, so I know sendmail is trying but can't)
Searched everywhere but still cannot find any answer for it.
If it was simply messages from root I wouldn't worry to much, in webmin you can view the messages in the queue OK and delete them but as seen www-data is failing which means any script I write for my webserver creates the mail OK both in Perl using sendmail and php using sendmail but cannot get delivered as sendmail is failing to accept it.
I've tried adding all the users to trusted-users in sendmail, no change, I've tried changing the mail queue as this is a custom one from the submit files in /etc/mail but nothing so far has worked. Setup for sendmail is pretty much unchanged from default other than adding my domains in to accept incoming and outgoing mail, squirrelmail does not have a problem which is the only web based system I can get work.
Many thanks for any suggestions.
Mike
Comment