Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[qmail] Server receives mail but refuses to route it.
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
Shak
n00b
n00b


Joined: 13 Jul 2002
Posts: 34
Location: Huddersfield UK

PostPosted: Mon Nov 25, 2002 10:17 pm    Post subject: [qmail] Server receives mail but refuses to route it. Reply with quote

Hi,

Im having real problems with the configuration of my qmail emailserver.

It will send mail fine, I can login via the telnet interface and send a mail, out, I can send a mail to it..it receives it (I can see it in the queue) and then it just stays there.

I have read that it is to do with the defaultdelivery etc.

My default delivery reads:

Code:

./Mailbox/


Which should route to ~/user/Mailbox/.

I have also read that /var/qmail/users/aliases needs to be populated...again I have done this using the /etc/passwd file and a command I found on the suggested HOWTO site for qmail

I then read it was to do with the permissions on the users mailbox...

Code:

[i]In /home/rob[/i]

root@lemming rob # ls -l
total 1
d------rwx    5 rob      users         120 Nov 25 18:01 Mailbox

[i]In /home/shak[/i]
root@lemming shak # ls -l
total 1
d------rwx    5 shak      users         120 Nov 25 18:01 Mailbox



So they are both correctly permissioned, I think.

I did these commands to get the permissions like this:

Code:

chown -R user:users Mailbox/
chmod -R o+rwx Mailbox/
chmod -R u-rwx Mailbox/


Yet when I send a mail to either of these addresses ( rob@shak.homelinux.org or shak@shak.homelinux.org ) it just sits in the queue (I can see this in webmin).

What am I doing wrong? Or how can I correct this?

Any files that are needed please post here or email me at rob.shakir@ntlworld.com

Thanks a bunch, Ive spent yonks on this,

Shak
Dedicated Gentooligan and webmaster of http://shak.homelinux.org
Back to top
View user's profile Send private message
Rroet
Apprentice
Apprentice


Joined: 27 May 2002
Posts: 176
Location: The Hague, The Netherlands

PostPosted: Tue Nov 26, 2002 6:52 am    Post subject: Re: [qmail] Server receives mail but refuses to route it. Reply with quote

Shak wrote:

Code:

[i]In /home/rob[/i]

root@lemming rob # ls -l
total 1
d------rwx    5 rob      users         120 Nov 25 18:01 Mailbox

[i]In /home/shak[/i]
root@lemming shak # ls -l
total 1
d------rwx    5 shak      users         120 Nov 25 18:01 Mailbox

So they are both correctly permissioned, I think.
I did these commands to get the permissions like this:
Code:

chown -R user:users Mailbox/
chmod -R o+rwx Mailbox/
chmod -R u-rwx Mailbox/



Do you really know what you did ? YOu have world permissions on the mailbox of Rob himself, but you gave rob himself NO permissions on this box, this is wrong.

1. Take a look in the .qmail file. A standard qmail installation will say
Code:

./.maildir/


In other words, it's told to use a .maildir instead of the Maildir you hope it to use. If you want to change that, you'll have to modify the .qmail file and move .maildir to Maildir (don't change the permissions on this directory).

2. If you want to change that for every user, then also change it in /etc/skel/

3. didn't you forget to run "ebuild /usr/portage/net-mail/qmail/qmailebuildfile config".

4. if shak.homelinux.org isn't the actual hostname on the server, make sure it's in the /var/qmail/control/locals.

5. If shak.homelinux.org is to become a virtual domain for virtual users, make sure that shak.homelinux.org is in the rcpthosts and that you modify your virtualdomains file.
_________________
Workstation: Shuttle SN85G4v2, AMD64 3200+, 512MB, 250GB sata, Radeon 9800 Pro.
Server 1: here
Server 2: here
Back to top
View user's profile Send private message
Shak
n00b
n00b


Joined: 13 Jul 2002
Posts: 34
Location: Huddersfield UK

PostPosted: Tue Nov 26, 2002 12:27 pm    Post subject: Reply with quote

Thanks for the help, sorry I got confused with chmod last night...Ill try that again tonight :)


1. My users (excepting root) dont have a .qmail file. Is that a problem?

2. Ill try that.

3. I rang the config file :) And created the symlinks.


4. Its in the hosts file :) I recieves the mail.

5. Its also in the rcpthosts :)

Still it doesnt work :p

Shak
Back to top
View user's profile Send private message
Shak
n00b
n00b


Joined: 13 Jul 2002
Posts: 34
Location: Huddersfield UK

PostPosted: Tue Nov 26, 2002 6:06 pm    Post subject: Reply with quote

Thanks mate, its sorted now...permissions problem on the maildirectory and also a problem with .qmail-default.

Now just stopping mail spoofing.

Shak
Back to top
View user's profile Send private message
Rroet
Apprentice
Apprentice


Joined: 27 May 2002
Posts: 176
Location: The Hague, The Netherlands

PostPosted: Wed Nov 27, 2002 5:10 pm    Post subject: Reply with quote

just make sure you have a :

1. locals
2. me
3. defaultdomain


if you have those 3 files, everything is secure. BUT, do not EVER put local domain files in rcpthosts or virtualdomains

keep them seperate!
_________________
Workstation: Shuttle SN85G4v2, AMD64 3200+, 512MB, 250GB sata, Radeon 9800 Pro.
Server 1: here
Server 2: here
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