e-mail fails to local root account

This is a discussion on e-mail fails to local root account within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, I have a few qmail servers that act as a relay only; but I need to keep e-mail ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-22-2004
Vahid
 
Posts: n/a
Default e-mail fails to local root account

Hi,
I have a few qmail servers that act as a relay only; but I need to keep
e-mail to root locally and not send it to the remote server.
When I do this: echo "test 2" | qmail-inject root
I get:
Return-Path: <#@[]>
Delivered-To: log@pp03spem40.
Delivered-To: root@pp03spem40.
Delivered-To: postmaster@pp03spem40.
Date: 22 Jul 2004 13:40:26 -0000
To: postmaster@pp03spem40.
Subject: failure notice

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

<root@pp03spem40.>:
This message is looping: it already has my Delivered-To line. (#5.4.6)
....

then I get:

Return-Path: <#@[]>
Delivered-To: log@pp03spem40.
Delivered-To: postmaster@pp03spem40.
Date: 22 Jul 2004 13:40:26 -0000
To: postmaster@pp03spem40.
Subject: failure notice

and:

Return-Path: <#@[]>
Delivered-To: log@pp03spem40.
Date: 22 Jul 2004 13:40:26 -0000
To: postmaster@pp03spem40.
Subject: failure notice

and:

Return-Path: <>
Delivered-To: log@pp03spem40.
Delivered-To: root@pp03spem40.
Date: 22 Jul 2004 13:40:25 -0000
To: root@pp03spem40.
Subject: failure notice

and at last:

Return-Path: <>
Delivered-To: log@pp03spem40.
Date: 22 Jul 2004 13:40:25 -0000
To: root@pp03spem40.
Subject: failure notice

I do not use DNS on this machine at all.
Here is the 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: 30001, 30002, 30003, 0, 30004, 30005, 30006, 30007.
group ids: 100, 101.

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

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

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

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 pp03spem40.

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

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

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

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

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

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

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

locals: (Default.) Messages for me are delivered locally.

me: My name is pp03spem40..

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

plusdomain: Plus domain name is .

qmqpservers: (Default.) No QMQP servers.

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

rcpthosts: (Default.) SMTP clients may send messages to any recipient.

morercpthosts: (Default.) No rcpthosts; morercpthosts is irrelevant.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: SMTP greeting: 220 pp03spem40 -=NO UNSOLICITED BULK E-MAIL=-.

smtproutes:
SMTP route: :[10.160.230.183]

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:

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.

Beside that, everything else is working just fine.
Thanks,
Vahid.






Reply With Quote
  #2 (permalink)  
Old 07-22-2004
Dave Sill
 
Posts: n/a
Default Re: e-mail fails to local root account

Vahid <NOSPAM-sunman@ureach.com> writes:

> When I do this: echo "test 2" | qmail-inject root
> I get:
> Return-Path: <#@[]>
> Delivered-To: log@pp03spem40.
> Delivered-To: root@pp03spem40.
> Delivered-To: postmaster@pp03spem40.
> Date: 22 Jul 2004 13:40:26 -0000
> To: postmaster@pp03spem40.
> Subject: failure notice
>
> Hi. This is the qmail-send program at pp03spem40..
> I tried to deliver a bounce message to this address, but the bounce bounced!
>
> <root@pp03spem40.>:
> This message is looping: it already has my Delivered-To line. (#5.4.6)
> ...


What do you have in ~alias/.qmail-root?

> defaulthost: (Default.) Default host name is pp03spem40..


You've either got a trailing dot or no top-level domain...for local
use that's OK.

> rcpthosts: (Default.) SMTP clients may send messages to any recipient.


You're an open rely. That's OK for non-Internet-accessible systems.

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
  #3 (permalink)  
Old 07-23-2004
Vahid
 
Posts: n/a
Default Re: e-mail fails to local root account



Dave Sill wrote:

> Vahid <NOSPAM-sunman@ureach.com> writes:
>
>
>>When I do this: echo "test 2" | qmail-inject root
>>I get:
>>Return-Path: <#@[]>
>>Delivered-To: log@pp03spem40.
>>Delivered-To: root@pp03spem40.
>>Delivered-To: postmaster@pp03spem40.
>>Date: 22 Jul 2004 13:40:26 -0000
>>To: postmaster@pp03spem40.
>>Subject: failure notice
>>
>>Hi. This is the qmail-send program at pp03spem40..
>>I tried to deliver a bounce message to this address, but the bounce bounced!
>>
>><root@pp03spem40.>:
>>This message is looping: it already has my Delivered-To line. (#5.4.6)
>>...

>
>
> What do you have in ~alias/.qmail-root?

root
>
>
>>defaulthost: (Default.) Default host name is pp03spem40..

>
>
> You've either got a trailing dot or no top-level domain...for local
> use that's OK.

yes, I have pp03spem40. in me.
>
>
>>rcpthosts: (Default.) SMTP clients may send messages to any recipient.

>
>
> You're an open rely. That's OK for non-Internet-accessible systems.

Server is not on internet, also I have :
167.113.19.31:allow,RELAYCLIENT=""
172.19.110.172:allow,RELAYCLIENT=""
:deny

in /etc/tcp.smtp
Am I still an open relay?
Thanks,
Vahid.
>


Reply With Quote
  #4 (permalink)  
Old 07-23-2004
Dave Sill
 
Posts: n/a
Default Re: e-mail fails to local root account

Vahid <NOSPAM-sunman@ureach.com> writes:

>> What do you have in ~alias/.qmail-root?

>
> root


And you're wondering why mail to root is looping? Try forwarding it to
a real person or saving it in a mailbox.

>>>rcpthosts: (Default.) SMTP clients may send messages to any
>>>recipient.

>>
>> You're an open rely. That's OK for non-Internet-accessible systems.

>
> Server is not on internet, also I have :
> 167.113.19.31:allow,RELAYCLIENT=""
> 172.19.110.172:allow,RELAYCLIENT=""
> :deny
>
> in /etc/tcp.smtp
> Am I still an open relay?


No. BTW, setting RELAYCLIENT is unnecessary if you don't have a
rcpthosts file.

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
  #5 (permalink)  
Old 07-25-2004
Vahid
 
Posts: n/a
Default Re: e-mail fails to local root account

Dave Sill <MaxFreedom@sws5.ornl.gov> wrote in message news:<wx0smbi2a4l.fsf@sws5.ornl.gov>...
> Vahid <NOSPAM-sunman@ureach.com> writes:
>
> >> What do you have in ~alias/.qmail-root?

> >
> > root

>
> And you're wondering why mail to root is looping? Try forwarding it to
> a real person or saving it in a mailbox.
>
> >>>rcpthosts: (Default.) SMTP clients may send messages to any
> >>>recipient.
> >>
> >> You're an open rely. That's OK for non-Internet-accessible systems.

> >
> > Server is not on internet, also I have :
> > 167.113.19.31:allow,RELAYCLIENT=""
> > 172.19.110.172:allow,RELAYCLIENT=""
> > :deny
> >
> > in /etc/tcp.smtp
> > Am I still an open relay?

>
> No. BTW, setting RELAYCLIENT is unnecessary if you don't have a
> rcpthosts file.



I have changed ~alias/.qmail-root to a local address, but I still see
bounces, it seems that all my local mails are being forwarded to my
smtproutes.
I do not have DNS running on my machine (server or client), is it
still possible to have qmail to deliver local account locally (not to
check smtproutes)?

Also, in the bounce I see "root@hostname.hostname" :
Return-Path: <#@[]>
Delivered-To: log@pp03spem40
Delivered-To: root@pp03spem40
Delivered-To: postmaster@pp03spem40
Date: 25 Jul 2004 16:16:46 -0000
To: postmaster@pp03spem40
Subject: failure notice

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

<root@pp03spem40.pp03spem40>:
65.160.230.183 does not like recipient.
Remote host said: 550 5.7.1 <root@pp03spem40.pp03spem40>... Relaying
denied. IP name lookup failed [167.113.109.37]
Giving up on 65.160.230.183.
....
65.160.230.183 is my smtproutes.
Thanks,
Vahid.
Reply With Quote
  #6 (permalink)  
Old 07-26-2004
Vahid
 
Posts: n/a
Default Re: e-mail fails to local root account



Vahid wrote:
> Dave Sill <MaxFreedom@sws5.ornl.gov> wrote in message news:<wx0smbi2a4l.fsf@sws5.ornl.gov>...
>
>>Vahid <NOSPAM-sunman@ureach.com> writes:
>>
>>
>>>>What do you have in ~alias/.qmail-root?
>>>
>>>root

>>
>>And you're wondering why mail to root is looping? Try forwarding it to
>>a real person or saving it in a mailbox.
>>
>>
>>>>>rcpthosts: (Default.) SMTP clients may send messages to any
>>>>>recipient.
>>>>
>>>>You're an open rely. That's OK for non-Internet-accessible systems.
>>>
>>>Server is not on internet, also I have :
>>>167.113.19.31:allow,RELAYCLIENT=""
>>>172.19.110.172:allow,RELAYCLIENT=""
>>>:deny
>>>
>>>in /etc/tcp.smtp
>>>Am I still an open relay?

>>
>>No. BTW, setting RELAYCLIENT is unnecessary if you don't have a
>>rcpthosts file.

>
>
>
> I have changed ~alias/.qmail-root to a local address, but I still see
> bounces, it seems that all my local mails are being forwarded to my
> smtproutes.
> I do not have DNS running on my machine (server or client), is it
> still possible to have qmail to deliver local account locally (not to
> check smtproutes)?
>
> Also, in the bounce I see "root@hostname.hostname" :
> Return-Path: <#@[]>
> Delivered-To: log@pp03spem40
> Delivered-To: root@pp03spem40
> Delivered-To: postmaster@pp03spem40
> Date: 25 Jul 2004 16:16:46 -0000
> To: postmaster@pp03spem40
> Subject: failure notice
>
> Hi. This is the qmail-send program at pp03spem40.
> I tried to deliver a bounce message to this address, but the bounce
> bounced!
>
> <root@pp03spem40.pp03spem40>:
> 65.160.230.183 does not like recipient.
> Remote host said: 550 5.7.1 <root@pp03spem40.pp03spem40>... Relaying
> denied. IP name lookup failed [167.113.109.37]
> Giving up on 65.160.230.183.
> ...
> 65.160.230.183 is my smtproutes.
> Thanks,
> Vahid.

Missed a little "Note" in LWQ document. Added ".local" to my me and
defaultdomain and locals, /etc/hosts,... and things seem to be working.
I am not sure what file really need the .local ext.
I looked at the config-fast.sh file and followed it (partially).
Thanks,
Vahid.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0