View previous topic :: View next topic |
Author |
Message |
tmcca Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 24 May 2019 Posts: 120
|
Posted: Sat Dec 05, 2020 10:59 pm Post subject: Configuring postfix? |
|
|
I am having a hard time getting postfix to work.
I am trying to use privateemail as a relay host.
my master.cf file
Code: |
submission inet n - n - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_auth_only=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
-o smtpd_relay_restrictions=permit_sasl_authenticated,reject
|
created a saslpass
Code: | [mail.privateemail.com]:587 myusername:mypassword
|
ran postmap /etc/postfix/saslpass
this is whats in mail.log
Code: |
Dec 5 17:58:50 servix postfix/pickup[20228]: 6FB6E20000: uid=0 from=<root@servix.giftboundgifts.com>
Dec 5 17:58:50 servix postfix/cleanup[22213]: 6FB6E20000: message-id=<20201205225850.6FB6E20000@servix.localdomain>
Dec 5 17:58:50 servix postfix/qmgr[20229]: 6FB6E20000: from=<root@servix.giftboundgifts.com>, size=372, nrcpt=1 (queue active)
Dec 5 17:58:51 servix postfix/smtp[20308]: 6FB6E20000: to=<iridude@aol.com>, relay=mail.privateemail.com[198.54.122.60]:587, delay=0.84, delays=0.01/0/0.72/0.1, dsn=5.7.1, status=bounced (host mail.privateemail.com[198.54.122.60] said: 553 5.7.1 <root@servix.giftboundgifts.com>: Sender address rejected: not owned by user sales@giftboundgifts.com (in reply to RCPT TO command))
Dec 5 17:58:51 servix postfix/cleanup[24457]: 5D9F920009: message-id=<20201205225851.5D9F920009@servix.localdomain>
Dec 5 17:58:51 servix postfix/bounce[24300]: 6FB6E20000: sender non-delivery notification: 5D9F920009
Dec 5 17:58:51 servix postfix/qmgr[20229]: 5D9F920009: from=<>, size=2587, nrcpt=1 (queue active)
Dec 5 17:58:51 servix postfix/qmgr[20229]: 6FB6E20000: removed
|
How do I fix this? Am I missing something? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
AlexJGreen Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 19 Sep 2018 Posts: 149
|
Posted: Mon Dec 07, 2020 12:11 am Post subject: |
|
|
_
Last edited by AlexJGreen on Mon Dec 28, 2020 3:26 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mvaterlaus Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Oct 2010 Posts: 237 Location: Switzerland
|
Posted: Mon Dec 07, 2020 2:05 pm Post subject: |
|
|
Hi,
coderanger is right. The relay server is bouncing the mail. It looks like your host is generating the mail (thus the root@servix.giftboundgifts.com address), so you are left with 2 options:
1. If you use for example mailx to send the mails, there is an parameter (-r) to set the sender address correctly.
2. You could do the following in /etc/postfix/generic:
Code: |
# vi /etc/postfix/generic
...
root@servix.giftboundgifts.com sales@giftboundgifts.com
|
After saving the file, don't forget to run postmap on the generic file and restart postfix.
The second solution is not to best, since it will send all server generated mails from the root account with the address of the sales account. _________________ For calming down your eyes or clearing your mind: www.patrickwehli.ch |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|