[Postfixbuch-users] Ist meine Config OK?
Chris Cohen
kildau-ml at gmx.de
Di Mär 25 11:50:26 CET 2008
On Monday 24 March 2008 17:43:46 Chris Cohen wrote:
> Hallo Liste,
>
> ich habe am Wochenende für mein LAN (5 User, 6 Workstations, 5 (v)Server)
> einen IMAP-Server installiert. Heute konfiguriere ich Postfix als internen
> MX, damit sich die user gegenseitig Mails schicken können.
> Die Authentifizierung geschieht über eine MySQL Datenbank, da nicht alle
> User Systemaccounts auf dem Mailserver haben sollen. Meine Konfiguration
> sieht jetzt so aus:
>
> Postfix:
> # sudo postconf -n
> inet_interfaces = all
> local_recipient_maps = mysql:/etc/postfix/local_recipients-mysql.cf
> $alias_maps
> local_transport = dovecot
> mailbox_command = /usr/lib/dovecot/deliver
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
> mydomain = unixhosts.org
> myhostname = amy.unixhosts.org
> mynetworks = 127.0.0.0/8
> myorigin = $mydomain
> smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
> unknown_local_recipient_reject_code = 550
>
> /e/p/master.cf
> [...]
> dovecot unix - n n - - pipe
> flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d
> ${user}
>
> /e/p/local_recipients-mysql.cf
> hosts = mysqlhost
> user = mail
> password = supersecretpassword
> dbname = users
> query = SELECT username FROM main WHERE username = '%s'
>
> Dovecot:
> # sudo dovecot -n
> # 1.0.13: /etc/dovecot/dovecot.conf
> log_timestamp: %Y-%m-%d %H:%M:%S
> protocols: imaps
> login_dir: /var/run/dovecot/login
> login_executable: /usr/lib/dovecot/imap-login
> mail_privileged_group: mail
> mail_location: maildir:/var/mail/%u
> auth default:
> mechanisms: plain login
> verbose: yes
> debug: yes
> debug_passwords: yes
> passdb:
> driver: sql
> args: /etc/dovecot/dovecot-sql.conf
> userdb:
> driver: static
> args: uid=5000 gid=5000 home=/var/mail/%u
> socket:
> type: listen
> master:
> path: /var/run/dovecot/auth-master
> mode: 384
> user: vmail
> group: vmail
>
> Ist meine Config so OK? Kritik ist immer willkommen.
>
Ganz offensichtlich nicht. Ich kann z.B. keine Aliase mehr nutzen.
Hier mal ein Logauszug
Mar 25 11:32:04 amy postfix/pickup[5152]: 178B478395: uid=1000 from=<mrkofee>
Mar 25 11:32:04 amy postfix/cleanup[5158]: 178B478395:
message-id=<20080325103204.178B478395 at amy.unixhosts.org>
Mar 25 11:32:04 amy postfix/qmgr[5153]: 178B478395:
from=<mrkofee at amy.unixhosts.org>, size=306, nrcpt=1 (queue active)
Mar 25 11:32:04 amy dovecot: auth(default): master in:
USER^I1^Iroot^Iservice=deliver
Mar 25 11:32:04 amy dovecot: auth-worker(default): sql(root): query: SELECT
password FROM main WHERE username = 'root';
Mar 25 11:32:04 amy dovecot: auth-worker(default): sql(root): unknown user
Mar 25 11:32:04 amy dovecot: auth(default): master out: NOTFOUND^I1
Mar 25 11:32:04 amy postfix/pipe[5160]: 178B478395:
to=<root at amy.unixhosts.org>, orig_to=<root>, relay=dovecot, delay=0.06,
delays=0.04/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Mar 25 11:32:04 amy postfix/cleanup[5158]: 21B5D783AA:
message-id=<20080325103204.21B5D783AA at amy.unixhosts.org>
Mar 25 11:32:04 amy postfix/bounce[5162]: 178B478395: sender non-delivery
notification: 21B5D783AA
Mar 25 11:32:04 amy postfix/qmgr[5153]: 178B478395: removed
Mar 25 11:32:04 amy postfix/qmgr[5153]: 21B5D783AA: from=<>, size=2056,
nrcpt=1 (queue active)
Mar 25 11:32:04 amy dovecot: auth(default): master in:
USER^I1^Imrkofee^Iservice=deliver
Mar 25 11:32:04 amy dovecot: auth-worker(default): sql(mrkofee): query: SELECT
password FROM main WHERE username = 'mrkofee';
Mar 25 11:32:04 amy dovecot: auth(default): password(mrkofee): Credentials:
{CRYPT}{PLAIN-MD5}ebb12eb47da2af187241a0d74fc3d14f
Mar 25 11:32:04 amy dovecot: auth(default): master out:
USER^I1^Imrkofee^Iuid=5000^Igid=5000^Ihome=/var/mail/mrkofee
Mar 25 11:32:04 amy postfix/pipe[5160]: 21B5D783AA:
to=<mrkofee at amy.unixhosts.org>, relay=dovecot, delay=0.02,
delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 25 11:32:04 amy postfix/qmgr[5153]: 21B5D783AA: removed
Postfix befragt also Dovecot (vermutlich wegen local_transport = dovecot?), ob
der User existiert. hash:/etc/aliases in local_recipient_maps wird also
komplett ignoriert?
--
Greetings
Chris
Mehr Informationen über die Mailingliste Postfixbuch-users