Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qmail: emails do not arrive locally [SOLVED]
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
mpiter
n00b
n00b


Joined: 21 Feb 2005
Posts: 65
Location: France

PostPosted: Tue Feb 07, 2006 10:07 am    Post subject: qmail: emails do not arrive locally [SOLVED] Reply with quote

I configured qmail as shown in the gentoo doc, but root cannot email to a local user. I am using dhcp and do not know which domain name to use. /etc/conf.d/hostname contains "eglantier", /etc/conf.d/domainname has "OVERRIDE=0" and I have a working network. In /var/qmail/control locals, me and rcpthosts contain eglantier.mydomain, and defaultdomain and plusdomain contain mydomain. Of course mydomain does not exist. Under root:
Code:
 # echo yop | mail mpiter
 # tail -n 7 ~1/current
@4000000043e86f6027ffa984 new msg 12744
@4000000043e86f6027ffbd0c info msg 12744: bytes 225 from <root@eglantier.mydomain> qp 19223 uid 0
@4000000043e86f6028ff0c6c starting delivery 1: msg 12744 to local mpiter@eglantier.mydomain
@4000000043e86f6028ff2bac status: local 1/10 remote 0/20
@4000000043e86f60293f97dc delivery 1: success: did_1+0+0/
@4000000043e86f60293fab64 status: local 0/10 remote 0/20
@4000000043e86f60293faf4c end msg 12744
# ls -l ~mpiter/Mailbox ~/mpiter/.qmail /var/spool/mail
ls: /home/mpiter/Mailbox: No such file or directory
ls: /root/mpiter/.qmail: No such file or directory
/var/spool/mail:
total 0
drwxrwxr-x  2 root   mail  72 Nov  7 15:55 ./
drwxr-xr-x  7 root   root 192 Nov 10 13:47 ../
-rw-rw-rw-  1 mpiter mail   0 Jun  6  2005 mpiter

Although mydomain does not exist, qmail locally treated the email but nothing appeared in the usual mail boxes of mpiter. What should I do? Thanks for any tips.
_________________
Michel Pitermann


Last edited by mpiter on Tue Feb 07, 2006 7:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Tue Feb 07, 2006 5:09 pm    Post subject: Reply with quote

DISCLAIMER: I am not an expert on qmail. But AFAIK it goes like this:

qmail does not deliver to /var/spool/mail but to ~/Mailbox (or ~/.maildir if you use maildir format).

This file has to exist however before qmail will write mail to it.

This is true if /var/qmail/control/defaultdelivery is either empty or has only commented lines, *and* there is no .qmail file setting things differently in /var/qmail/alias, *and* there is no ~/.qmail file setting things differently.

man dot-qmail will tell you more about this. (Although it's one of the most cryptic man pages I know.)
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
mpiter
n00b
n00b


Joined: 21 Feb 2005
Posts: 65
Location: France

PostPosted: Tue Feb 07, 2006 7:41 pm    Post subject: Reply with quote

Thank you very much. That was exactly the missing piece of information that I needed. My defautldelivery was ./.maildir/, hence I found everything there. I then did a man dot-qmail and could configure everything as I wished. Best regards,

pit
_________________
Michel Pitermann
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Tue Feb 07, 2006 10:10 pm    Post subject: Reply with quote

Nice to know.
Cheers!
_________________
Please put [SOLVED] in your topic if you are a moron.
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