Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
178 views
in Technique[技术] by (71.8m points)

ubuntu - Postfix: Relay mails from specific domain

I'm using postfix in combination with Zarafa as Groupware (local server) and import mails from an external server to a mailbox on my local server. I do this, because of restricted resources on the external server.

So incoming mails at the external server are redirected to my local server - but sending mails is done on the local server. The problem is, that the rx-Record of the domain of the external mail server does not point to my server - so my send mails are marked as spam, especially in GMail.

Therefore I want to relay the outgoing mails of the local mailbox to the external server to fix this issue. I want to restrict this relaying to this single domain - there are other domains on the local server witch don't need to be relayed, because the domains are owned by me and the MX record is correct.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Got it to work with relay server:

main.cf

sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
smtp_sasl_security_options = noanonymous

... and creating relaymaps and sasl_passwd file


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...