Page 1 of 1
Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-28 21:34
by frunk
Hallo,
ich bin ein absoluter Linux Neuling und versuche seit Stunden verzweifelt einen Mail Server auf meinem VServer einzurichten. Ich habe einige Tutorials etc. durchgearbeitet und bin im Moment so weit:
Ich habe installiert:
Postfix
Dovecot
eMails per SMTP verwenden über Postfix funktioniert inzwischen bestens und ich kann mich auch per POP3 an Dovecot (oder wo auch immer) anmelden und versuchen eMails abzurufen, aber folgende Probleme habe ich noch:
1) Wenn ich eine eMail an
irgendwas@meineDomain.de schicken will kommt folgendes zurück:
Code: Select all
Recipient address rejected: User unknown in local recipient table)
2) Wenn das nun funktioniert...wie kriege ich diese eMails auf den Account den ich da mit pop3 abrufe? Am liebsten wäre mir eine einzige catch-all Adresse. Alle
irgendwas@meineDomain.de eMails sind sowieso an mich gerichtet, also möchte ich die am besten irgendwie alle auf einem POP3 Konto abrufen.
Wie teile ich nun Postfix mit, alle meine eMails an meinen POP3-account (den ich ja schon abrufen kann, logischerweise immer leer) weiterzuleiten?
Danke im Voraus!
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-28 21:55
by Roger Wilco
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-28 22:24
by frunk
Hmm jetzt kommen die Mails immerhin nicht mehr zurück. Also irgendwo kommen sie an....nur nicht einem meinem POP3-Postfach :/
postconf -n
Code: Select all
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = ~/Maildir/
html_directory = no
inet_interfaces = all
local_recipient_maps =
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, meineDomain.de
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
dovecot.conf:
Code: Select all
protocols = pop3 pop3s
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
ssl_disable = yes
disable_plaintext_auth = no
mail_location = maildir:~/Maildir
pop3_uidl_format = %08Xu%08Xv
dotlock_use_excl=yes
maildir_copy_with_hardlinks=yes
auth_verbose = yes
auth default {
mechanisms = plain
passdb passwd-file {
args = /etc/dovecot/passwd
}
userdb static {
args = uid=vmail gid=vmail home=/home/vmail/%u
}
}
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-28 23:13
by Joe User
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-29 00:06
by frunk
Hat leider nichts verändert :(
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-29 11:36
by frunk
Okay, die Mails kommen doch zurück. War ein Konfigurationsfehler bei den Bounces, die kamen nur nicht an.
Also wenn ich an irgendeinen Account schicke, dann kommt logischerweise folgendes zurück:
schicke ich aber an
root@meinedomain.de, dann kommt folgendes als bounce zurück:
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-29 17:57
by Roger Wilco
Hast du alle Benutzer im System mit "useradd" angelegt? Für deine Postfix-Konfiguration brauchst du im Moment Systembenutzer, für die Dovecot-Konfiguration werden virtuelle Benutzer benötigt. Entscheider dich für eine Variante.
Re: Dovecot/Postfix will nicht wie ich will...
Posted: 2007-10-31 15:15
by frunk
Vielen Dank für die Hilfe, ich konnte das Problem jetzt lösen und alles läuft (inkl. Spamfilter etc.) so wie ich es mir vorgestellt hatte! :)
Danke!