View previous topic :: View next topic |
Author |
Message |
savey n00b
Joined: 10 Sep 2005 Posts: 28
|
Posted: Wed Sep 21, 2005 10:06 am Post subject: Qmail --> cannot send mail to localhost |
|
|
Please help, I'm sure that my qmail-send, qmail-smtpd, and qmail-pop3d had already run.
I've tried to send outgoing email to yahoo.com and it works.
But when I try to send email to user in localhost (user@localhost, root@localhost, etc), the mail can't be delivered.. in the queue always.
When I tried to retrieve mail via pop3, the output is below
# telnet localhost 110
Trying 127.0.0.1...
Connected to Blabla.com.
Escape character is '^]'.
+OK <9128.1127325892@Blabla.com>
user savey
+OK
pass asdfg
+OK
list
+OK
.
Wat's going on? I have no idea where the problem is |
|
Back to top |
|
|
SnarlCat n00b
Joined: 21 Sep 2005 Posts: 40
|
Posted: Wed Sep 21, 2005 3:52 pm Post subject: |
|
|
Is 'localhost' listed in your /var/qmail/controls/locals file?
Check out [url]http://lifewithqmail.org/lwq.html[/url] and [url]http://www.qmailrocks.org/[/url] for more than you'd ever want to know about qMail..
Hope this helps! _________________ --
Our OS who art in CPU, UNIX be thy name.
Thy programs run, thy syscalls
done, In kernel as it is in user! |
|
Back to top |
|
|
savey n00b
Joined: 10 Sep 2005 Posts: 28
|
Posted: Thu Sep 22, 2005 1:58 am Post subject: |
|
|
content of /var/qmail/control/locals:
blabla.com
I really don't have any idea where to fix the problem??? |
|
Back to top |
|
|
savey n00b
Joined: 10 Sep 2005 Posts: 28
|
Posted: Thu Sep 22, 2005 6:42 am Post subject: |
|
|
@400000004332c1f12d7ed3e4 new msg 4292916
@400000004332c1f12d7ee384 info msg 4292916: bytes 199 from <root@Blabla.com> qp 13046 uid 0
@400000004332c1f12dc28fbc starting delivery 12: msg 4292916 to local savey@Blabla.com
@400000004332c1f12dc3995c status: local 1/10 remote 0/20
@400000004332c1f12dd19b4c delivery 12: deferral: Unable_to_switch_to_/home/savey/Maildir:_access_denied._(#4.3.0)/
@400000004332c1f12dd2760c status: local 0/10 remote 0/20
Above is my /var/log/qmail/qmail-send/current
Please help me, what should I do? |
|
Back to top |
|
|
SnarlCat n00b
Joined: 21 Sep 2005 Posts: 40
|
Posted: Fri Sep 23, 2005 1:51 am Post subject: |
|
|
[quote="savey"]content of /var/qmail/control/locals:
blabla.com
I really don't have any idea where to fix the problem???[/quote]
From Section 3.3 of lifewithqmail.org:
=========================================
3.3. Multiple host names
If your system is known by more than one name, e.g., all addresses of the form user@host1.example.com can also be written as user@example.com or user@mail.example.com, then you need to tell qmail this so it'll know which addresses it should deliver locally and which messages it should accept from remote systems.
To do this, just add all of the names to two control files:
* rcpthosts, which tells qmail-smtpd to accept mail addressed to these hosts, and
* locals, which tells qmail-send that addresses on these hosts are to be delivered locally.
Send qmail-send a HUP (hangup) signal to tell it to reread locals. If you have qmailctl, you can do:
qmailctl reload
=========================================
So, if you want to send to "user@localhost", you'll need to have "localhost" in the locals file..
In my install (and, I'll preface this by saying I am not a qmail expert, and I modeled my install from an install from someone who knows far more than I), I have (sanitized):
localhost
domain.tld
mail.domain.tld
hostname.domain.tld
and it works like a charm.
Again, do read through the lifewithqmail.org site and the qmailrocks.org pages; I'd suggest the former over the later, though.. easier reading for me..
Hope this helps.. _________________ --
Our OS who art in CPU, UNIX be thy name.
Thy programs run, thy syscalls
done, In kernel as it is in user! |
|
Back to top |
|
|
savey n00b
Joined: 10 Sep 2005 Posts: 28
|
Posted: Fri Sep 23, 2005 3:27 am Post subject: |
|
|
Please help, I think below log is the problem why I can't send to localhost
Code: | @400000004332c1f12d7ed3e4 new msg 4292916
@400000004332c1f12d7ee384 info msg 4292916: bytes 199 from <root@Blabla.com> qp 13046 uid 0
@400000004332c1f12dc28fbc starting delivery 12: msg 4292916 to local savey@Blabla.com
@400000004332c1f12dc3995c status: local 1/10 remote 0/20
@400000004332c1f12dd19b4c delivery 12: deferral: Unable_to_switch_to_/home/savey/Maildir:_access_denied._(#4.3.0)/
@400000004332c1f12dd2760c status: local 0/10 remote 0/20
|
|
|
Back to top |
|
|
SnarlCat n00b
Joined: 21 Sep 2005 Posts: 40
|
Posted: Fri Sep 23, 2005 1:32 pm Post subject: |
|
|
[quote="savey"]Please help, I think below log is the problem why I can't send to localhost
[code]@400000004332c1f12d7ed3e4 new msg 4292916
@400000004332c1f12d7ee384 info msg 4292916: bytes 199 from <root@Blabla.com> qp 13046 uid 0
@400000004332c1f12dc28fbc starting delivery 12: msg 4292916 to local savey@Blabla.com
@400000004332c1f12dc3995c status: local 1/10 remote 0/20
@400000004332c1f12dd19b4c delivery 12: deferral: Unable_to_switch_to_/home/savey/Maildir:_access_denied._(#4.3.0)/
@400000004332c1f12dd2760c status: local 0/10 remote 0/20
[/code][/quote]
Check the permissions of /home/savey/Maildir -- qmail is smart enough to check that other people can't read your mail.. I don't use maildirs, but as I understand they should be chmod 700, and mail folders as chmod 600.. be sure this is correct..
Also, when you've made config changes, be sure to restart/kill -sighup the server to apply your changes..
Any change? _________________ --
Our OS who art in CPU, UNIX be thy name.
Thy programs run, thy syscalls
done, In kernel as it is in user! |
|
Back to top |
|
|
savey n00b
Joined: 10 Sep 2005 Posts: 28
|
Posted: Tue Sep 27, 2005 6:27 am Post subject: |
|
|
Hi.. SnarlCat
I've changed with chmod the Maildir
Code: |
# chmod 700 /home/savey/Maildir
# chmod 600 /home/savey/Maildir/cur
# chmod 600 /home/savey/Maildir/new
# chmod 600 /home/savey/Maildir/tmp
# ls -al Maildir
total 20
drwx------ 5 savey users 4096 Sep 22 14:30 .
drwxr-xr-x 4 savey users 4096 Sep 22 14:30 ..
drw------- 2 savey users 4096 Sep 22 14:30 cur
drw------- 2 savey users 4096 Sep 22 14:30 new
drw------- 2 savey users 4096 Sep 22 14:30 tmp
|
And when I try to send email to savey with qmail-inject, here the log in /var/log/qmail/qmail-send/current
Code: |
@40000000433955a6094c0b04 starting delivery 13: msg 4294046 to local savey@Blabla.com
@40000000433955a6094d188c status: local 1/10 remote 0/20
@40000000433955a6095b06f4 delivery 13: deferral: Unable_to_switch_to_/home/savey/Maildir:_access_denied._(#4.3.0)/
@40000000433955a6095bddcc status: local 0/10 remote 0/20
|
|
|
Back to top |
|
|
SnarlCat n00b
Joined: 21 Sep 2005 Posts: 40
|
Posted: Tue Sep 27, 2005 1:00 pm Post subject: |
|
|
hm... so I think this is where I defer you to the qmail mailing list (http://lifewithqmail.org/lwq.html#support); you've reached the end of my qmail abilities -- best of luck, and if you think of it when you get it solved, please update us here...
qMail took me a few tries to get working, and as much of a pain in the butt this is now, it'll be worth it when you get it working, so do keep with it and get it solved!
Thanks, and good luck! _________________ --
Our OS who art in CPU, UNIX be thy name.
Thy programs run, thy syscalls
done, In kernel as it is in user! |
|
Back to top |
|
|
|