Dnia  8.07.2024 o godz. 22:44:46 Simon Thorpe (PST) via Postfix-users pisze:
> Ahh ok, then I need to do more reading. I essentially want the following...
> 
> All emails to {alias}@mydomain.com sent onto any of a list of other
> domains, i.e. {alias}@domain1.com, {alias}@domain2.com, etc.
> 
> If I can do this without code and purely in config, perfect.

Then virtual alias table is probably what you need (or even the basic
"regular" alias table for local delivery, if all addresses "to be
translated" are in the same local domain).

http://www.postfix.org/postconf.5.html#virtual_alias_maps
http://www.postfix.org/postconf.5.html#alias_maps

The table can be a static text file (hashed), but it can be a MySQL or LDAP
query as well for more complicated cases. It can even be an external program
running independently of Postfix :) (so called TCP tables,
http://www.postfix.org/tcp_table.5.html ), but I think you don't do that.
You should be able to define everything in config without coding.

> I was using a custom filter in the master.cf,
> 
> mailrepeater-filter unix - n n - - pipe  flags=Rq user=nobody
> argv=/opt/python/forward_email.py

And how do you call that filter from your config? Because just defining it in
master.cf does nothing except the fact that it is defined :). But you have
to actually *use* it after defining.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to