configuring a relay server with postfix
-
Hello,
I have a problem, I try to configure a mail relay server with my vivaldi email and postfixbut I'm blocked with different message and error
and I would like to know what configuration I missed or what is the exact problem...this is my /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) 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 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = myhostname = domain.ext relayhost = [smtp.vivaldi.net]:587 inet_interfaces = loopback-only recipient_delimiter = # enable SASL authentication smtp_sasl_auth_enable = yes # disallow methods that allow anonymous authentication. smtp_sasl_security_options = noanonymous # where to find sasl_passwd smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd # Enable STARTTLS encryption smtp_use_tls = yes # where to find CA certificates smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtp_sasl_mechanism_filter = plain, login smtp_tls_security_level = encrypt myorigin = /etc/mailname mailbox_size_limit = 0 inet_protocols = all compatibility_level = 2 mynetworks = 127.0.0.1/32 [::1]/128
and I obtain error like:
Sep 16 11:43:06 mydomain postfix/pickup[2314]: 89FE821B63: uid=0 from=<[email protected]> Sep 16 11:43:06 mydomain postfix/cleanup[2322]: 89FE821B63: message-id=<[email protected]> Sep 16 11:43:06 mydomain postfix/qmgr[2315]: 89FE821B63: from=<[email protected]>, size=354, nrcpt=1 (queue active) Sep 16 11:43:07 mydomain postfix/smtp[2319]: 89FE821B63: to=<[email protected]>, relay=smtp.vivaldi.net[31.209.137.12]:587, delay=0.83, delays=0/0/0.74/0.09, dsn=5.7.1, status=bounced (host smtp.vivaldi.net[31.209.137.12] said: 553 5.7.1 <[email protected]>: Sender address rejected: not owned by user [email protected] (in reply to RCPT TO command)) Sep 16 11:43:07 mydomain postfix/cleanup[2322]: 6E59421BEB: message-id=<[email protected]> Sep 16 11:43:07 mydomain postfix/qmgr[2315]: 6E59421BEB: from=<>, size=2447, nrcpt=1 (queue active) Sep 16 11:43:07 mydomain postfix/bounce[2321]: 89FE821B63: sender non-delivery notification: 6E59421BEB Sep 16 11:43:07 mydomain postfix/qmgr[2315]: 89FE821B63: removed Sep 16 11:43:08 mydomain postfix/smtp[2317]: 6E59421BEB: to=<[email protected]>, relay=smtp.vivaldi.net[31.209.137.12]:587, delay=0.87, delays=0/0/0.72/0.15, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 34D95BD07F) Sep 16 11:43:08 mydomain postfix/qmgr[2315]: 6E59421BEB: removed Sep 16 11:38:04 mydomain postfix/pickup[1727]: 5CAD721B97: uid=0 from=<[email protected]> Sep 16 11:38:04 mydomain postfix/cleanup[1754]: 5CAD721B97: message-id=<[email protected]> Sep 16 11:38:04 mydomain postfix/qmgr[1728]: 5CAD721B97: from=<[email protected]>, size=354, nrcpt=1 (queue active) Sep 16 11:38:05 mydomain postfix/smtp[1758]: 5CAD721B97: to=<[email protected]>, relay=smtp.vivaldi.net[31.209.137.12]:587, delay=0.68, delays=0/0/0.6/0.08, dsn=5.7.1, status=bounced (host smtp.vivaldi.net[31.209.137.12] said: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied (in reply to RCPT TO command)) Sep 16 11:38:05 mydomain postfix/cleanup[1754]: 1BDDC21B52: message-id=<[email protected]> Sep 16 11:38:05 mydomain postfix/qmgr[1728]: 1BDDC21B52: from=<>, size=2397, nrcpt=1 (queue active) Sep 16 11:38:05 mydomain postfix/bounce[1760]: 5CAD721B97: sender non-delivery notification: 1BDDC21B52 Sep 16 11:38:05 mydomain postfix/qmgr[1728]: 5CAD721B97: removed Sep 16 11:38:05 mydomain postfix/smtp[1758]: 1BDDC21B52: to=<[email protected]>, relay=smtp.vivaldi.net[31.209.137.12]:587, delay=0.69, delays=0/0.01/0.6/0.07, dsn=5.7.1, status=bounced (host smtp.vivaldi.net[31.209.137.12] said: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied (in reply to RCPT TO command)) Sep 16 11:38:05 mydomain postfix/qmgr[1728]: 1BDDC21B52: removed
Regards.
-
@borrougagnou said in configuring a relay server with postfix:
553 5.7.1 [email protected]: Sender address rejected: not owned by user [email protected] (in reply to RCPT TO command)
In this case, although you have successfully authenticated, you are trying to relay a mail from a mail address that does not match that of your account. This is not allowed.
-
@thomasp Hi, thank you for your answer
what do you mean by " a mail address that does not match that of your account"I try to match both of thing
if you check the log, I send 2 log, I just done few modification like add my vivaldi email directly into postfix, than the email adress from my own server.
maybe I done a bad configuration ? where is my error ?
edit:
username = my vivaldi account name -
@borrougagnou As can be seen in the error message, the sender address is
[email protected]
, not[email protected]
-
IT WORK !!! finally it work after IDK how many year !!!
if someone have this problem too, I recommend to follow this tutorial about changing "root@server" by "[email protected]" :https://www.ollegustafsson.com/en/postfix-fix-wrong-sender-address/
it's about create a "sender_canonical_maps"also thank you to @thomasp for showing me my mistake.
-
This post is deleted! -
Ppafflick moved this topic from Community & Services on