Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - grappa

Pages: [1]
Email and Groupware / Force use of smarthost
« on: September 24, 2020, 08:52:58 am »
I have Zentyal/postfix configured to send mail through a smarthost at a larger provider, and grab it through the same using fetchmail since many spam heuristics are suspicious towards smaller, independent mail servers.

Problem is as follows: I want to force use of the smarthost independent of which destination outgoing mail has. Even if it is a destination domain name that the mail server is set to handle, I still want it to go through the smarthost.

Is there any good way to do this? I tried commenting out virtual_mailbox_domains in and rebuilding and restarting the server. This makes one able to send mail to "nonexistent" users on the Zentyal server (which do not exist there but only at the bigger mail provider), but since Fetchmail passes mail to Postfix, there is no longer any destination for the incoming mail Fetchmail grabs for a user so it just disappears. (Off-topic but this also makes me a bit worried, does that mean mail will start flushing out into thin air if the Postfix module stops working?)

Also tried setting transport_maps in to point to a file containing * smarthost:port and then running sudo postmap that_file. Rebuild and restart. No change stuff addressed to the domain still bypasses smarthost.

Any tips much appreciated

Thanks in advance

Pages: [1]