Postfix will keine Maildir Verzeichnisse erstellen

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
Anonymous

Postfix will keine Maildir Verzeichnisse erstellen

Post by Anonymous » 2009-02-24 11:47

Hallo,

auch nach stundenlanger Google-Suche konnte ich das folgende Problem nicht eingrenzen. Auch die Logs sagen nischt.

Ziel: Ich möchte Postfix+Mailman+Courier+MySQL+Fetchmail zum laufen bringen.

Ich habe bereits alles installiert, nun will Postfix jedoch keine Verzeichnisse (Maildir) mit "cur", "new" usw. erstellen, wenn eine E-Mail an eine Adresse, die in der MySQL-DB eingetragen ist ankommt.

Hier die Ausgabe von postconf -n

Code: Select all

alias_database = hash:/etc/aliases                                                                                                
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases                                                                 
append_dot_mydomain = no                                                                                                         
biff = no                                                                                                                         
broken_sasl_auth_clients = yes                                                                                                   
config_directory = /etc/postfix                                                                                                   
inet_interfaces = all                                                                                                             
mailbox_size_limit = 0                                                                                                           
mydestination = sub.meinedomain.de, localhost.meinedomain.de, , localhost                                                     
myhostname = sub.meinedomain.de                                                                                               
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
owner_request_special = no
recipient_delimiter = +
relay_domains = sub.meinedomain.de, lists.sub.meinedomain.de
relayhost =
smtp_sasl_auth_enable = no
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:207
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 112400000
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 207
virtual_transport = virtual
virtual_uid_maps = static:207


Im mail.info log steht:

Code: Select all

authdaemond: Authenticated: sysusername=<null>, sysuserid=207, sysgroupid=207, homedir=/var/vmail, address=user@sub.meinedomain.de, fullname=First Last, maildir=user@sub.meinedomain.de/, quota=<null>, options=<null>


Die Authentifizierung über die DB funktioniert also, auch das Maildir und das homedir wird richtig ausgelesen. Nun wird aber trotzdem kein Maildir erstellt. Was mache ich falsch?

Das System ist Debian.

Gruss
serverrookie

User avatar
Joe User
Project Manager
Project Manager
Posts: 11583
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix will keine Maildir Verzeichnisse erstellen

Post by Joe User » 2009-02-24 12:30

Code: Select all

ls -alh /var/vmail
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

Anonymous

Re: Postfix will keine Maildir Verzeichnisse erstellen

Post by Anonymous » 2009-02-24 12:55

ls -alh /var/vmail:

Code: Select all

drwxr-xr-x  2 root root 4,0K 2009-02-22 16:04 .
drwxr-xr-x 20 root root 4,0K 2009-02-22 16:04 ..


Ich hatte das Verzeichnis aber auch schonmal mit "postfix" als Eigentümer gesetzt. Änderte nichts.

User avatar
Joe User
Project Manager
Project Manager
Posts: 11583
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix will keine Maildir Verzeichnisse erstellen

Post by Joe User » 2009-02-24 13:42

So sieht (m)eine funktionierende Config aus:

Code: Select all

devnull ~ # postconf -n
allow_percent_hack = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
default_destination_concurrency_limit = 20
disable_vrfy_command = yes
home_mailbox = .maildir/
local_destination_concurrency_limit = 2
local_transport = local
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_size_limit = 0
masquerade_exceptions = root
message_size_limit = 0
mydestination = $myhostname, localhost
mydomain = domain.tld
myhostname = mail.domain.tld
mynetworks_style = host
myorigin = $mydomain
recipient_delimiter = +
smtp_use_tls = yes
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_reverse_client_hostname, permit
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, check_recipient_mx_access cidr:/etc/postfix/mx_access, reject_unauth_destination, check_recipient_access pcre:/etc/postfix/recipient_checks.pcre, check_policy_service inet:127.0.0.1:12525, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/server.crt
smtpd_tls_dh1024_param_file = /etc/postfix/ssl/dh_1024.pem
smtpd_tls_dh512_param_file = /etc/postfix/ssl/dh_512.pem
smtpd_tls_key_file = /etc/postfix/ssl/server.key
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1999
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:1999

devnull ~ # cat /etc/postfix/mysql_relay_domains_maps.cf
user = postfix
password = password
hosts = localhost
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '1' and active = '1'

devnull ~ # cat /etc/postfix/mysql_virtual_alias_maps.cf
user = postfix
password = password
hosts = localhost
dbname = postfix
table = alias
select_field = goto
where_field = address
additional_conditions = and active = '1'

devnull ~ # cat /etc/postfix/mysql_virtual_domains_maps.cf
user = postfix
password = password
hosts = localhost
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '0' and active = '1'

devnull ~ # cat /etc/postfix/mysql_virtual_mailbox_limit_maps.cf
user = postfix
password = password
hosts = localhost
dbname = postfix
table = mailbox
select_field = quota
where_field = username
additional_conditions = and active = '1'

devnull ~ # cat /etc/postfix/mysql_virtual_mailbox_maps.cf
user = postfix
password = password
hosts = localhost
dbname = postfix
table = mailbox
select_field = maildir
where_field = username
additional_conditions = and active = '1'

devnull ~ # cat /etc/postfix/mx_access
0.0.0.0/8         REJECT Domain MX in broadcast network
10.0.0.0/8        REJECT Domain MX in RFC 1918 private network
127.0.0.0/8       REJECT Domain MX in loopback network
169.254.0.0/16    REJECT Domain MX in link local network
172.16.0.0/12     REJECT Domain MX in RFC 1918 private network
192.0.2.0/24      REJECT Domain MX in TEST-NET network
192.168.0.0/16    REJECT Domain MX in RFC 1918 private network
224.0.0.0/4       REJECT Domain MX in class D multicast network
240.0.0.0/5       REJECT Domain MX in class E reserved network
248.0.0.0/5       REJECT Domain MX in reserved network

devnull ~ # cat /etc/postfix/recipient_checks.pcre
/^@/             550 Invalid address format.
/[!%@].*@/      550 This server disallows weird address syntax.
/^postmaster@/   OK
/^hostmaster@/   OK
/^abuse@/        OK

devnull ~ # ls -alh /var/vmail
total 20K
drwxr-xr-x 6 vmail root 127 2009-01-16 21:53 .
drwxr-xr-x 15 root root 4.0K 2009-02-07 17:49 ..

devnull ~ # grep vmail /etc/{group,passwd}
/etc/group:vmail:x:1999:
/etc/passwd:vmail:x:1999:1999::/var/vmail:/bin/false
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

User avatar
daemotron
Administrator
Administrator
Posts: 2800
Joined: 2004-01-21 17:44

Re: Postfix will keine Maildir Verzeichnisse erstellen

Post by daemotron » 2009-02-26 17:27

serverrookie wrote:Ich hatte das Verzeichnis aber auch schonmal mit "postfix" als Eigentümer gesetzt. Änderte nichts.

Hat postfix denn auf Deinem System die UID 207? Wenn nicht, solltest Du den User mit UID 207 mal zum Eigentümer machen...