When I use the mail command, PHP's mail() function or if cron etc. generates
output:

mail to [EMAIL PROTECTED] - recieved OK, from [EMAIL PROTECTED]
mail to john@pluto  fails as below
mail to john  fails as below

deliveries via pop, smtp etc work fine.

Why is my qmail adding a second domain name to these messages, that should
be delivered locally?

The machine pluto is on an internal network (10.0.0.12) which has the domain
'office.internal' - it also has the address office.mobiletones.com, this is
a machine that portforwards ports 25 and 110 to the internal machine. DNS
resolves OK for the internal net (eg. 'nslookup pluto' returns
'pluto.office.internal')

Thanks
John


-------

Hi. This is the qmail-send program at pluto.
I tried to deliver a bounce message to this address, but the bounce bounced!

<[EMAIL PROTECTED]>:
Sorry, I couldn't find any host named pluto.pluto. (#5.1.2)

--- Below this line is the original bounce.

Return-Path: <>
Received: (qmail 12540 invoked for bounce); 20 Apr 2001 14:59:21 -0000
Date: 20 Apr 2001 14:59:21 -0000
From: MAILER-DAEMON@pluto
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at pluto.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
Sorry, I couldn't find any host named pluto.pluto. (#5.1.2)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 12538 invoked by uid 0); 20 Apr 2001 14:59:21 -0000
Date: 20 Apr 2001 14:59:21 -0000
Message-ID: <20010420145921.12537.qmail@pluto>
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: test

--------

output of qmail-showctl:


qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 500, 501, 502, 0, 503, 504, 505, 506.
group ids: 500, 501.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is pluto.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is pluto.

defaulthost: (Default.) Default host name is pluto.

doublebouncehost: (Default.) 2B recipient host: pluto.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is pluto.

helohost: (Default.) SMTP client HELO host name is pluto.

idhost: (Default.) Message-ID host name is pluto.

localiphost: (Default.) Local IP address becomes pluto.

locals:
Messages for office.mobiletones.com are delivered locally.
Messages for pluto are delivered locally.
Messages for office.internal are delivered locally.

me: My name is pluto.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: (Default.) Plus domain name is pluto.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at pluto.
SMTP clients may send messages to recipients at office.mobiletones.com.
SMTP clients may send messages to recipients at office.internal.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 pluto.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.


concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is pluto.

defaulthost: (Default.) Default host name is pluto.

doublebouncehost: (Default.) 2B recipient host: pluto.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is pluto.

helohost: (Default.) SMTP client HELO host name is pluto.

idhost: (Default.) Message-ID host name is pluto.

localiphost: (Default.) Local IP address becomes pluto.

locals:
Messages for office.mobiletones.com are delivered locally.
Messages for pluto are delivered locally.
Messages for office.internal are delivered locally.

me: My name is pluto.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: (Default.) Plus domain name is pluto.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at pluto.
SMTP clients may send messages to recipients at office.mobiletones.com.
SMTP clients may send messages to recipients at office.internal.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 pluto.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.


I think this is the relevant info from the log:

@400000003ae04ed313489f64 info msg 404089: bytes 208 from <[EMAIL PROTECTED]>
qp 12538 uid 0
@400000003ae04ed3152a05ac starting delivery 249: msg 404089 to remote
[EMAIL PROTECTED]
@400000003ae04ed3152a1934 status: local 0/10 remote 1/20
@400000003ae04ed3154e4ebc delivery 249: failure:
Sorry,_I_couldn't_find_any_host_named_pluto.pluto._(#5.1.2)/
@400000003ae04ed3154e6244 status: local 0/10 remote 0/20
@400000003ae04ed3172e130c bounce msg 404089 qp 12540
@400000003ae04ed3172e2a7c end msg 404089
@400000003ae04ed317314374 new msg 404448
@400000003ae04ed317314f2c info msg 404448: bytes 735 from <> qp 12540 uid
506
@400000003ae04ed318b59d6c starting delivery 250: msg 404448 to remote
[EMAIL PROTECTED]
@400000003ae04ed318b5a924 status: local 0/10 remote 1/20
@400000003ae04ed318da6764 delivery 250: failure:
Sorry,_I_couldn't_find_any_host_named_pluto.pluto._(#5.1.2)/
@400000003ae04ed318da82bc status: local 0/10 remote 0/20
@400000003ae04ed31ab8dbc4 bounce msg 404448 qp 12542
@400000003ae04ed31ab8f334 end msg 404448
@400000003ae04ed31abc0074 new msg 404447
@400000003ae04ed31abc0844 info msg 404447: bytes 1176 from <#@[]> qp 12542
uid 506
@400000003ae04ed31c90c844 starting delivery 251: msg 404447 to local
postmaster@pluto
@400000003ae04ed31c90d3fc status: local 1/10 remote 0/20
@400000003ae04ed31ec77e64 new msg 404446
@400000003ae04ed31ec795d4 info msg 404446: bytes 1276 from <#@[]> qp 12545
uid 500
@400000003ae04ed3209e45ec starting delivery 252: msg 404446 to local
john@pluto
@400000003ae04ed3209e5974 status: local 2/10 remote 0/20
@400000003ae04ed3209e6144 delivery 251: success: did_0+1+0/qp_12545/
@400000003ae04ed3209e6914 status: local 1/10 remote 0/20
@400000003ae04ed3209e6cfc end msg 404447
@400000003ae04ed321fb5d1c delivery 252: success: did_1+0+0/
@400000003ae04ed321fb748c status: local 0/10 remote 0/20
@400000003ae04ed321fb7874 end msg 404446
@400000003ae04ef5309c38b4 new msg 404089
@400000003ae04ef5309c4c3c info msg 404089: bytes 2348 from
<[EMAIL PROTECTED]> qp 12557 uid 0
@400000003ae04ef5325ec48c starting delivery 253: msg 404089 to local
[EMAIL PROTECTED]
@400000003ae04ef5325ed814 status: local 1/10 remote 0/20
@400000003ae04ef5339e3db4 delivery 253: success: did_1+0+0/
@400000003ae04ef5339e5524 status: local 0/10 remote 0/20
@400000003ae04ef5339e5cf4 end msg 404089


Any ideas?

Thanks
John


Reply via email to