Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qmail root user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fisherbln
n00b
n00b


Joined: 28 Apr 2003
Posts: 49

PostPosted: Sat Feb 05, 2005 12:23 am    Post subject: qmail root user Reply with quote

I'm trying to send mail to the root user on my system, but it always returns the mail. here is the relevant error in the qmail logs:
Code:

@4000000042040dcd19df0a0c status: local 1/10 remote 0/20
@4000000042040dcd1af9d0ac delivery 65: success: did_0+0+1/
@4000000042040dcd1b02063c status: local 0/10 remote 0/20
@4000000042040dcd1b03bbbc end msg 6994
@4000000042040ec514b133fc new msg 879
@4000000042040ec514b717cc info msg 879: bytes 552 from <brian@abc.us> qp 8937 uid 201
@4000000042040ec5162f293c starting delivery 66: msg 879 to local abc.us-root@abc.us
@4000000042040ec5162f5c04 status: local 1/10 remote 0/20
@4000000042040ec516f06214 delivery 66: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
domain names have been changed to protect the innocent :)
output of $ls -la /var/qmail/alias:
Code:

drwxr-xr-x  3 alias qmail 184 Feb  4 18:11 .
drwxr-xr-x  9 root  root  248 Jan  7 07:52 ..
drwx------  5 alias qmail 120 Jan  7 07:52 .maildir
-rw-r--r--  1 alias qmail   6 Jan  7 07:54 .qmail-mailer-daemon
-rw-r--r--  1 alias qmail   6 Jan  7 07:54 .qmail-postmaster
-rw-r--r--  1 alias qmail   7 Feb  4 18:11 .qmail-root

any suggestions on how to make my root user receive mail correctly? Btw, they should all alias to the account brian.
_________________
The day microsoft markets a product that doesn't suck is the day they market vacuum cleaners.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Feb 05, 2005 2:14 am    Post subject: Reply with quote

Code:
@4000000042040ec5162f293c starting delivery 66: msg 879 to local abc.us-root@abc.us

This is not root.
Nor is it you.

Nor do I see anything sensible in the alias directory which leads me to conclude that you have any, i.e. what is IN those files ?

Do both you and root have legal maildirs ?
You have to create these with maildirmake; you cannot easily make them yourself.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
fisherbln
n00b
n00b


Joined: 28 Apr 2003
Posts: 49

PostPosted: Sat Feb 05, 2005 2:27 am    Post subject: Reply with quote

This setup was done exactly how it says to do it in the qmail setup howto found at: http://www.gentoo.org/doc/en/qmail-howto.xml
When I initially setup, I could send things to root locally with the little test that the howto shows, but I've never tried to just send something to root to see if it actually works. The files /var/qmail/alias/.qmail-* all contain "brian".
No, root does not have a maildir because no mail is sent to root, I'm trying to alias it to the account brian! brian account does have a maildir that works perfectly.
I am sending the mail to root@abc.com, I'm not sure why that section of the log says differently, maybe the way it is logged??
_________________
The day microsoft markets a product that doesn't suck is the day they market vacuum cleaners.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Feb 05, 2005 4:07 am    Post subject: Reply with quote

Definitely not the way it is logged - believe that.
Mail server logs will always tell you exactly what the sender and recipient envelopes said - or else what use are they ?
In fact, since mail processors may cause the envelope to be changed multiple times, the only guaranteed way to find out what the original envelope was, is to check the mail server logs...

Methiks there is still somehow a config error somewhere.

EDIT: look at the filesizes - is that a LF or an extra space in the qmail-root alias file ?
If it's a space - kablooey ;-)

The log file anomaly is caused by qmail trying to expand the address to something - anything! - it can deliver, but it fails.

'Nother EDIT: it's way smarter to set all other administrative aliases to root, since this means that if you need to change the root alias you will only have to do so once, not 53 gazillion times...
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
fisherbln
n00b
n00b


Joined: 28 Apr 2003
Posts: 49

PostPosted: Sat Feb 05, 2005 5:53 am    Post subject: Reply with quote

thank you for suggestion on changing everything to root so I can just change it once :)
Now, if I can just get the friggin aliases to work!!! They are being completely ignored from what I can tell... all of them. There is nothing extra in the files, just the username I want to alias them to. The funny thing is, if I send to postmaster, it will go though, however, I just discovered that those mails are being saved in a maildir that exists for postmaster in /var/vpopmail/domains/bbox.us/postmaster/
So, this further leads me to believe that my aliases are being ignored. I thought for a second that it was just emails I was sending non-locally to these addresses that hand problems, but even if I do a qmail-inject postmaster (or root for that matter), I get the same issue. Root is undeliverable and postmaster goes to that maildir I didn't even know existed until now.
Is there a setting somewhere that turned off aliases???? I have never been this frustrated with linux in the 8 years I've been using it!
_________________
The day microsoft markets a product that doesn't suck is the day they market vacuum cleaners.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Feb 05, 2005 3:52 pm    Post subject: Reply with quote

Most MTA's require you to run a command to update aliases when they've been changed...
I have little experience with qmail, but my first thought would be that you simply have to run qmail's equivalent of newaliases.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum