Mail relay geht nicht

Ich bin bei der Einrichtung eines Mailrelays der zugehörigen Anleitung gefolgt:
Kapitel 14.8.1 vom Handbuch 4.4.4:

ucr set mail/relayhost=[mail.xxxxx.de]:587
ucr set mail/relayauth=yes
vi /etc/postfix/smtp_auth
mail.xxxxx.de it@my-domain.de:PASSWORT
postmap /etc/postfix/smtp_auth
service postfix reload

Es kommen aber keine Mails an bei it@my-domain.de an. Das Problem könnte sein, dass my-domain.de auch die Domain von der univention-Installation ist? Wenn ich it@… als primäre Mailadresse des Administrator-Accounts setze, bekomme ich unten stehende Fehlermeldung (user unknown in virtual mailbox table) nicht, die Mail kommt aber auch nicht an. Wie kann ich auch für die Univention-Domain die Mails relayen?

Ach und noch eine weitere Frage, wie kann ich die Mails an root lokal lesen? mail in der bash bringt: No mail for root.

1 Like

Anbei der Output von /var/log/mail.log

May  4 12:13:52 server postfix/smtpd[83122]: connect from localhost[127.0.0.1]
May  4 12:13:52 server postfix/smtpd[83122]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <it@my-domain.de>: Recipient address rejected: User unknown in virtual mailbox table; from=<clamav@my-domain.de> to=<it@my-domain.de> proto=ESMTP helo=<localhost>
May  4 12:13:52 server amavis[29233]: (29233-02) Negative SMTP resp. to DATA: 554 5.5.1 Error: no valid recipients
May  4 12:13:52 server postfix/smtpd[83122]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=5/7
May  4 12:13:52 server amavis[29233]: (29233-02) (!)L6KfCXmx_8Gn FWD from <clamav@my-domain.de> -> <it@my-domain.de>, BODY=7BIT 550 5.1.1 from MTA(smtp:[127.0.0.1]:10025): 550 5.1.1 <it@my-domain.de>: Recipient address rejected: User unknown in virtual mailbox table
May  4 12:13:52 server postfix/smtpd[83122]: connect from localhost[127.0.0.1]
May  4 12:13:52 server amavis[29233]: (29233-02) Blocked MTA-BLOCKED {RejectedInbound}, [127.0.0.1] <clamav@my-domain.de> -> <it@my-domain.de>, Message-ID: <20200504101352.50FB11425E6@server.my-domain.de>, mail_id: L6KfCXmx_8Gn, Hits: -0.001, size: 559, 253 ms
May  4 12:13:52 server postfix/smtpd[83122]: C339F1425E7: client=localhost[127.0.0.1], orig_client=unknown[127.0.0.1]
May  4 12:13:52 server postfix/cleanup[83111]: C339F1425E7: message-id=<20200504101352.7AC551425E5@server.my-domain.de>
May  4 12:13:52 server postfix/qmgr[49903]: C339F1425E7: from=<clamav@my-domain.de>, size=1186, nrcpt=1 (queue active)
May  4 12:13:52 server postfix/smtpd[83122]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 quit=1 commands=6
May  4 12:13:52 server postfix/smtp[83117]: 50FB11425E6: to=<it@my-domain.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.48, delays=0.19/0.03/0.01/0.25, dsn=5.1.1, status=bounced (host 127.0.0.1[127.0.0.1] said: 550 5.1.1 id=29233-02 - Rejected by next-hop MTA on relaying, from MTA(smtp:[127.0.0.1]:10025): 550 5.1.1 <it@my-domain.de>: Recipient address rejected: User unknown in virtual mailbox table (in reply to end of DATA command))
Mastodon