Postfix+Dovecot maildir problem

R

rosenrot

Guest
Hallo,

ich habe mir aus einigen How-To's meinen Mailserver zusammengebaut. Es funktioniert auch alles soweit, als Maildir hab ich "/var/mail"

Nun habe ich aber folgendes Problem...

Wenn ich eine mail über smtp sende oder ich eine Mail empfange legt er sie mir unter "/var/mail/user" ab.

Will ich sie per pop3 abrufen, erstellt mir Dovecot(??) das Verzeichnis, "/var/mail/user@domain.com"

wo in der Config wird das festgelegt? Die Mails sollen in das "/var/mail/user@domain.com" Verzechnis!!

postfix - main.cf
CODE
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = mail.ripp-solutions.com ESMTP
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = domain.com, localhost.localdomain, localhost
relayhost = 127.0.0.1
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = /var/mail/
mailbox_command = /usr/lib/dovecot/deliver

# ........- Virtual Domain options
virtual_mailbox_domains=hash:/etc/postfix/virtual_mailbox_domains
virtual_mailbox_base = /var/mail/
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox_maps
virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = dovecot
dovecot_destination_recipient_limit=1

# SMTP - AUTH
smtpd_sasl_type=dovecot
smtpd_sasl_path=private/auth
smtpd_sasl_auth_enable=yes
smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes


#mail_spool_directory = /var/mail/




dovecot - dovecot.conf

CODE
disable_plaintext_auth = no
pop3_uidl_format = %08Xu%08Xv
protocols = pop3 pop3s imap imaps
auth_verbose = yes
mail_privileged_group = mail
first_valid_uid = 1
auth default {
mechanisms = plain login
passdb passwd-file {
args = /etc/dovecot/passwd
}
userdb static {
args = uid=mail gid=mail home=/var/mail/%u

}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}

}

protocol lda {
# Address to use when sending rejection mails.
postmaster_address = root
# Enabling Sieve plugin for server-side mail filtering
mail_plugins = cmusieve
}

mail_location = maildir:/var/mail/%u








Wäre super, wenn mir wer helfen könnte!!!

Danke!
 
QUOTE (rosenrot @ Sa 3.01.2009, 20:39)Will ich sie per pop3 abrufen, erstellt mir Dovecot(??) das Verzeichnis, "/var/mail/user@domain.com"

wo in der Config wird das festgelegt? Die Mails sollen in das "/var/mail/user@domain.com" Verzechnis!!

Ich kenne / nutze Dovecot zwar nicht.

Aber auch nach mehrfachem Lesen scheint mir kein Problem zu existieren.

Die Mails sollen nach "/var/mail/user@domain.com", das Verzeichnis wird ja offenkundig erstellt.
 
Hmm...

wie gesagt, ich habe es mir aus How-To's zusammengebastelt und es sollte so eigentlich stimmen...

Hat es eventuell etwas mit der Weiterleitung an Dovecot zu tun?

Also mit der Anweisung in der...

postfix - master.cf
CODE
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}



Ich bin ein bisschen planlos mit dem Problem, wäre super wenn mir da jemand helfen könnte!!!


Danke, rose
 
QUOTE (rosenrot @ So 4.01.2009, 03:46)
Ich bin ein bisschen planlos mit dem Problem, wäre super wenn mir da jemand helfen könnte!!!


Danke, rose

Ich habe alles was mit Mail zu tun hat ausgelagert (und bin damit sehr glücklich), Dovecot hatte ich aber auch genutzt. Insbesondere diese Seite war hilfreich, damit lief es bei mir: http://holl.co.at/howto-email/
 
Zurück
Oben