Hallo,
meine Mailcow Instanz läuft im WWW als offizieller MX.
In meinem Heimnetzwerk habe ich einen Postfix Server unter Ubuntu, den ich Mails über Mailcow versenden lassen. Sprich, ich versuche im meinen Postfix Server zuhause im Heimnetzwerk so zu konfigurieren, dass er den Mailcow Server als Smarthost verwendet.
Kann mit jemand sagen, welche Konfigurationsschritte dafür notwendig sind?
Ein SSL Login habe ich bereits mit den Daten eines Mailcow Users konfiguriert.
Bisher bekomme ich immer folgende Fehlermeldung:
554 5.7.1 <E-Mail Adresse des Empfängers>: Relay access denied
Wobei es mich wundert, wieso hier die E-Mail-Adresse des Empfängers in der Fehlermeldung auftaucht.

Hallo,

First you should check that your Ubuntu machine’s postfix is configured to send encrypted mail on port 587 with STARTTLS to Mailcow. You also need to authenticate with Mailcow using a good username and password.

A little off topic (just inb case it is useful), I use sSMTP instead of Postfix in the simple case where I am forwarding logs and notifications. This is easy to set up, and may be a good way for you to test the relaying. A working sSMTP configuration with Mailcow looks like this:

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=wonderfulmailcow.mydomain.org:587

AuthUser=me@mydomain.tld
AuthPass=#MyWonderfulPassword#
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
rewriteDomain=mydomain.tld

# The full hostname
hostname=myhost.mydomain.tld

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

No one is typing