Re: Hopefully an easy header rewriting problem for Postfix
Clint Olsen [EMAIL PROTECTED] writes: I essentially want to rewrite all envelope senders of the form: @host.my.domain to just @my.domain The examples in the Postfix docs seem to make it seem like the patterns only allow you to specify explicit recipients at the end of a rewriting rule, but that's not what I want. I know this was a common thing to do in Sendmail using that hideous CF syntax. Any cluepons would be very much appreciated. The myorigin variable is what you need. See postconf(5) for more things you can do with it. ( myorigin (default: $myhostname) ( The domain name that locally-posted mail appears to come from, and that ( locally posted mail is delivered to. The default, $myhostname, is ade- ( quate for small sites. If you run a domain with multiple machines, you ( should (1) change this to $mydomain and (2) set up a domain-wide alias ( database that aliases each user to [EMAIL PROTECTED] ( ( Example: ( ( myorigin = $mydomain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hopefully an easy header rewriting problem for Postfix
On Dec 07, Lowell Gilbert wrote: The myorigin variable is what you need. See postconf(5) for more things you can do with it. ( myorigin (default: $myhostname) ( The domain name that locally-posted mail appears to come from, and that ( locally posted mail is delivered to. The default, $myhostname, is ade- ( quate for small sites. If you run a domain with multiple machines, you ( should (1) change this to $mydomain and (2) set up a domain-wide alias ( database that aliases each user to [EMAIL PROTECTED] ( ( Example: ( ( myorigin = $mydomain Right, I have this set, yet it is still possible to have me send a mail using Mutt with my From: address set as host.my.domain. This works great for incompletely specified recipients and senders etc. But I haven't figured out how to incorporate myorigin to rewrite all addresses that match a pattern to modify that (and only that) in the address. Thanks, -Clint ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hopefully an easy header rewriting problem for Postfix
Clint Olsen [EMAIL PROTECTED] writes: On Dec 07, Lowell Gilbert wrote: The myorigin variable is what you need. See postconf(5) for more things you can do with it. ( myorigin (default: $myhostname) ( The domain name that locally-posted mail appears to come from, and that ( locally posted mail is delivered to. The default, $myhostname, is ade- ( quate for small sites. If you run a domain with multiple machines, you ( should (1) change this to $mydomain and (2) set up a domain-wide alias ( database that aliases each user to [EMAIL PROTECTED] ( ( Example: ( ( myorigin = $mydomain Right, I have this set, yet it is still possible to have me send a mail using Mutt with my From: address set as host.my.domain. This works great for incompletely specified recipients and senders etc. But I haven't figured out how to incorporate myorigin to rewrite all addresses that match a pattern to modify that (and only that) in the address. Ah; sorry I misunderstood your aim. I don't like doing this heavy-handed sort of rewriting, but the magic keyword is masquerade. masquerade_classes, masquerade_domains, and masquerade_exceptions give you a number of options. I don't see any way to be quite as sweeping as you're describing, but in my opinion that's a good thing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hopefully an easy header rewriting problem for Postfix
On Dec 07, Noel Jones wrote: http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade Looks like exactly what you describe. Just set in main.cf: masquerade_domains = my.domain and then run postfix reload Yes! This looks like it does what I want! I completely forgot about the masquerade feature in Sendmail. Thanks a lot for this. Incidentally, the reason why I ran into this problem was because I absolutely cannot get GNU Mailman to stop using host.my.domain in the mail dispatch section (yes, I have modified mm_cfg.py), and this was totally messing up Postfix and causing it to trigger all sorts of spam filtering checks that should not have been invoked. I realized I technically had a hole in my config and I didn't want to have to fix every single client that might send mail through my server. Thanks again, -Clint ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hopefully an easy header rewriting problem for Postfix
On Dec 7, 2007 12:23 PM, Clint Olsen [EMAIL PROTECTED] wrote: I essentially want to rewrite all envelope senders of the form: @host.my.domain to just @my.domain http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade Looks like exactly what you describe. Just set in main.cf: masquerade_domains = my.domain and then run postfix reload -- Noel Jones ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]