PDA

View Full Version : mixing tutorials


daniel_rodriguez
26th January 2006, 04:49
Mixing up perfect debian setup and virtual users and domains with postfix I've installed a debian sarge as follows

Base System
Quota
DNS-Server
MySQL
Postfix/POP3/IMAP
Razor, Pyzor And DCC And Configure SpamAssassin
Courier-IMAP/Courier-POP3
Apache2
Proftpd

is this correct?

now maildir folders cannot automatically be created.

falko
26th January 2006, 06:07
The Maildirs should be automatically created when the first email for the respective users arrive.

Any error messages in your mail log?

daniel_rodriguez
26th January 2006, 13:12
extracted from mail.log
Jan 26 09:04:08 web postfix/local[15690]: BD641284546: to=<fulano@web.mcye.misiones.gov.ar>, relay=local, delay=0, status=bounced (maildir delivery failed: create /home/fulano/Maildir/tmp/1138277048.P15690.web.mcye.misiones.gov.ar: Permission denied)
Jan 26 09:04:08 web postfix/local[15690]: warning: maildir access problem for UID/GID=1001/100: create /home/fulano/Maildir/tmp/1138277048.P15690.web.mcye.misiones.gov.ar: Permission denied
Jan 26 09:04:08 web postfix/local[15690]: warning: perhaps you need to create the maildirs in advance

using following command to create users
useradd userlogin -s /bin/false
then add user password

after user is created /home has no folder for that user, should it be created later on?

falko
26th January 2006, 18:00
It's a problem with the permissions. Please post the output of ls -la /home

What's the username of the user with the UID 100?
What's the groupname of the group with the GID 100?

daniel_rodriguez
26th January 2006, 18:35
ls -la /home

total 16
drwxrwsr-x 4 root staff 4096 2006-01-18 11:43 .
drwxr-xr-x 22 root root 4096 2006-01-20 15:20 ..
drwxr-xr-x 3 admin admin 4096 2006-01-26 09:41 admin
drwxr-xr-x 2 ftp nogroup 4096 2006-01-18 11:43 ftp


identd is the username with the UID 100
users is the groupname with the GID 100

falko
26th January 2006, 20:44
Please try this: chown identd:users /home

daniel_rodriguez
26th January 2006, 21:14
great Falko
chown identd:users /home
solve the problem

now, please tell me if I'm wrong, first mail sent to user must be sent from same server so folder structure could be created?

ask this because I was been sending mail from yahoo, hotmail and some local isp but none of them create maildir.


regards, and thanks once again

falko
26th January 2006, 21:40
now, please tell me if I'm wrong, first mail sent to user must be sent from same server so folder structure could be created?

ask this because I was been sending mail from yahoo, hotmail and some local isp but none of them create maildir.

It doesn't matter from where you send them. If the emails from Yahoo and others didn't arrive, then you should check if the MX records for the recipient domains are pointing to your server.
When you send a mail from Yahoo to your server, do you see that something happens in your mail log?

daniel_rodriguez
26th January 2006, 22:29
even after 'chowned' /home maildir was not created, but when send mail from administrator account it did.
Well it doesn't matter anymore, mail system is working.



:D