On Friday 09 February 2007 14:26, you wrote:
> Hi,
>
> Sorry for the lame question :(
>
> I have this account augusto@www.sincity.lan.
>
> Apparently is working alright:
> -------------------------------------------------------------
> [root@www bin]# ./qmail-ldaplookup -m augusto@www.sincity.lan
> Searching ldap for:
> (&(objectClass=qmailUser)(|(mail=augusto@www.sincity.lan)(mailAlternateAddr
>ess=augusto@www.sincity.lan))) under dn: dc=sincity,dc=lan
> No entries found.
If no entries are found then the user does not exists to qmail.
> -------------------------------------------------------------
> [root@www maildirs]# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> 220 www.sincity.lan ESMTP
> HELO www.sincity.lan
> 250 www.sincity.lan
> MAIL FROM:root@www.sincity.lan
> 250 ok
> RCPT TO:augusto@www.sincity.lan
> 250 ok
> DATA
> 354 go ahead punk, make my day
> dhfvjaskf kdfghfshjghjsdg
> .
> 250 ok 1171029841 qp 4304 by www.sincity.lan
> QUIT
> 221 www.sincity.lan Goodbye.
> Connection closed by foreign host.
> -------------------------------------------------------------
>
> But the fact is that the message doesn't appears anywhere.
Qmail accepts it because it's in locals and rcpthosts file. Even if the users
does not exists. Check qmail-smtpd and qmail-send logs.
>
> In /var/qmail/control/dirmaker i have the line:
> /var/qmail/bin/cria_homedir
>
> and /var/qmail/bin/cria_homedir is this script:
> ----------------------------------------------------
> #!/bin/sh
> /bin/mkdir /var/qmail/maildirs/$1
> /bin/mkdir -p /var/qmail/maildirs/$1/Maildir/new
> /bin/mkdir /var/qmail/maildirs/$1/Maildir/cur
> /bin/mkdir /var/qmail/maildirs/$1/Maildir/tmp
> chown -R vmail.vmail /var/qmail/maildirs/*
> -----------------------------------------------------
>
> The directories are not created automatically, although i've compiled
> qmail with that option.
>
> I tried to create them manually, and after send the mail, but still it
> doesn't appears anywhere.
The maildir is only created if the user is found.
> I've created the user with:
> -------------------------------------------------------------
> dn: uid=augusto,ou=Users,dc=sincity,dc=lan
> objectClass: top
> objectClass: person
> objectClass: inetOrgPerson
> objectClass: qmailUser
> mail: mario@www.sincity.lan
> uid: augusto
> cn: Mario Gamito
> sn: Gamito
> homeDirectory: /var/qmail/maildirs/augusto
> qmailUID: 1001
> qmailGID: 1001
> mailAlternateAddress: mario.gamito@www.sincity.lan
> mailHost: www.sincity.lan
> mailQuotaSize: 1000000
> accountStatus: active
> userPassword: {MD5}WLy6EfDWY8iCVejCzlp+LQ==
> -----------------------------------------------------------
This entry does not have any augusto@www.sincity.lan entry.
Rgds,
--
Nuno Miguel Pais Fernandes <npf@eurotux.com>
Cisco Certified Network Associate
Oracle Certified Professional
Eurotux Informática, S.A. [http://eurotux.com]
Rua Rosalvo de Almeida, 5. 4710-429 BRAGA PORTUGAL
Tel: (+351) 253 257395 - Fax: (+351) 253 257396
pgpS6v7HZmraI.pgp
Description: PGP signature
|