email builder:
> Here is what I've done with the typo corrected. Is this a Bad
> Idea? Are there problems with naively using the domain from the
> recipient email address as the
> nexthop value?
>
> master.cf:
>
> smtp2 unix - - n - - smtp
> -o smtp_bind_address=bbb.bbb.bbb.bbb
>
> 127.0.0.1:10024 inet n - n - - smtpd
> -o content_filter=
> -o
> receive_override_options=no_unknown_recipient_checks,no_header_body_checks
> -o smtpd_helo_restrictions=
> -o smtpd_client_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o
> smtpd_data_restrictions=check_recipient_access,pcre:/etc/postfix/send_to_smtp2
> -o smtpd_end_of_data_restrictions=
> -o smtpd_restriction_classes=
> -o mynetworks=127.0.0.0/8
>
> /etc/postfix/send_to_smtp2:
> /@(.+)/ FILTER smtp2:$1
This sends all mail to transport "smtp2". If that is what you want,
then you can get a better result with "default_transport = smtp2",
You can get a simpler result by adding "-o smtp_bind_address..."
to the default "smtp" delivery transport.
Wietse