Hi, thanks for replying. By nothing works I meant that everything I tried to change in
sendmail.cf had no effect.
I tried specifying for the DS variable:
Fully Qualified Domain Name
[FQDN in square brackets]
IP address
[IP in square brackets]
I've also tried disabling postfix, removing postfix, re-applying sendmail rpms. If I run "telnet smartrelay 25" it works, so comms is fine.
We have about 200 linux boxes on this estate, I also tried using a
sendmail.cf from one that works but this also doesn't work.
If I mail root@localhost" it all works as expected.
We have several scripts setup that use the following mail command:
mail -s "Subject"
us...@domain.com -c another
us...@domain.com -- -f
host...@clientsdomain.com
This results in the following being bounced back:
Message 2:
From MAILER...@hostname.blah.blah Tue Apr 21 17:07:58 2015
Return-Path: <MAILER...@hostname.blah.blah>
Date: Tue, 21 Apr 2015 17:07:58 +0100
From: Mail Delivery Subsystem <MAILER...@hostname.blah.blah>
To: ro...@hostname.blah.blah
Content-Type: multipart/report; report-type=delivery-status;
boundary="t3LG5R9o017225.1429632478/hostname.blah.blah"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: RO
Part 1:
The original message was received at Tue, 21 Apr 2015 17:05:27 +0100
from root@localhost
----- The following addresses had permanent fatal errors -----
-c
(reason: 550 5.1.1 <-...@hostname.blah.blah>... User unknown)
(expanded from: -c)
-f
(reason: 550 5.1.1 <-...@hostname.blah.blah>... User unknown)
(expanded from: -f)
----- Transcript of session follows -----
451
remotehost.com: Name server timeout
451
anotherremote.com: Name server timeout
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <-...@hostname.blah.blah>... User unknown
550 5.1.1 -f... User unknown
<<< 550 5.1.1 <-...@hostname.blah.blah>... User unknown
550 5.1.1 -c... User unknown
451
remotehost.com: Name server timeout
451
anotherremote.com: Name server timeout
Part 2:
Content-Type: message/delivery-status
Part 3:
Content-Type: message/rfc822
From root Tue Apr 21 17:05:27 2015
Return-Path: <root>
From: root <root>
Date: Tue, 21 Apr 2015 17:05:27 +0100
Any suggestions gratefully received as I'm beginning to loose the will to live with this one...