winlicli
Goto Top

Virtuelle Dovecotuser werden von Postfix nicht verwendet

Hallo zusammen,

ich habe den Authentifizierungsmechanismus von dovecot auf die /etc/dovecot/users gestellt.
Soweit so gut. Mit dem Webmailer kann ich mich auch als diese User anmelden und Mails versenden.
Beim Mailempfang gibt es allerdings Probleme, da Postfix meint folgendes in den Logs sagt:

Recipient address rejected: User unknown in local recipient table;

Ich habe schon etwas recherchiert um dieses Problem zu lösen. Leider konnte ich mir damit nicht helfen. Weiß jemand was genau zu tun ist?
Hier die main.cf von Postfix:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 1073741824
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20971520
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.de
myhostname = srv0.example.de
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_exclude_ciphers = MD5, DES, ADH, RC4, PSD, SRP, 3DES, eNULL, aNULL
smtp_tls_loglevel = 2
smtp_tls_mandatory_ciphers = high
smtp_tls_mandatory_exclude_ciphers = MD5, DES, ADH, RC4, PSD, SRP, 3DES, eNULL, aNULL
smtp_tls_mandatory_protocols = !SSLv3, !SSLv2
smtp_tls_protocols = !SSLv2, !SSLv3
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/mail.example.de.crt
smtpd_tls_exclude_ciphers = MD5, DES, ADH, RC4, PSD, SRP, 3DES, eNULL, aNULL
smtpd_tls_key_file = /etc/ssl/mail.example.de.key
smtpd_tls_loglevel = 2
smtpd_tls_mandatory_ciphers = high
smtpd_tls_mandatory_exclude_ciphers = MD5, DES, ADH, RC4, PSD, SRP, 3DES, eNULL, aNULL
smtpd_tls_mandatory_protocols = !SSLv3, !SSLv2
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550

Danke schon mal im Vorraus und Lg

Content-Key: 384211

Url: https://administrator.de/contentid/384211

Printed on: April 18, 2024 at 16:04 o'clock

Member: dodo30
dodo30 Aug 23, 2018 updated at 09:13:25 (UTC)
Goto Top
pack das in diese code tags bitte!

welches Betriebssystem? centos? mal SElinux deaktiviert? , evtl hat /etc/dovecot/users falsches SElinux tag

hat das denn schonmal funktioniert?
wenn nein, nochmal von vorne anfangen, ersmal grundkonfig machen, gucken ob mails rein und rausgehen, ssl aktivieren gucken ob mails rein und rausgehen.

usw
Member: dodo30
dodo30 Aug 23, 2018 updated at 09:20:46 (UTC)
Goto Top
ansonten nochmal alle konfigs posten , die von dovecot und zeig mal wie deine /etc/dovecot/users aussieht

p.s einfach an diese Seite halten, dann geht das, alles andere danach anpassen was du noch benötigst.

rechts auf der seite gibs mehre buttons zu postfix, dovecot, users, ect

https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=10
Member: dodo30
Solution dodo30 Aug 23, 2018 at 09:30:50 (UTC)
Goto Top
ich glaub
das hier fehlt schonmal

# create a admin user for virtual mailboxes
[root@mail ~]# useradd -u 20000 -s /sbin/nologin vmail
[root@mail ~]# vi /etc/postfix/main.cf
# line 164: comment out
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# add to the end
# if specify multiple domains, specify comma or space separated
virtual_mailbox_domains = srv.world, virtual.host
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/virtual-mailbox
virtual_uid_maps = static:20000
virtual_gid_maps = static:20000
Member: WinLiCLI
WinLiCLI Aug 23, 2018 at 10:24:25 (UTC)
Goto Top
Super das war es... Danke dodo30..

Es hat zwar funktioniert, aber das es eben eher copy&paste war ohne 100% genau zu wissen was ich da gerade gemacht habe, habe ich es wieder auf die linux-systemuser gestellt.
Gibt es ein gutes Buch zum Thema Postfix und vielleicht auch dovecot? Ich weis dass es 2 deutschsprachige Bücher aus dem Jahr 2008 gibt aber ob diese das Thema wirklich gut erklären weis ich nicht.

Lg
Member: dodo30
dodo30 Aug 23, 2018 at 11:07:42 (UTC)
Goto Top
ist mir nicht bekannt,am besten die parameter googlen, da gibs im internet gute dokus dann zu die erklären warum wieso weshalb
Member: Gentooist
Gentooist Sep 04, 2018 at 15:52:26 (UTC)
Goto Top
Ein ausgewachsener MTA wie Postfix ist kein Webserver. Einen Webserver hat man mal eben in fünf Minuten eingerichtet, und dann läuft er; ein MTA dagegen ist eine Mimose, und wenn man nicht genau weiß, was man tut, sehr schnell eine mißbrauchte Spamschleuder.