Hello all,

Managed to get my mail server running,

it serves 6 domains , mydomain.(.net, .com, and .co.za) and lists.mydomain.(.net, .com, and .co.za)

These are setup as relay domains, so for instance, anything sent to mydomain.net goes to another mail server via smtp, and anything sent to lists.mydomain.net goes to postfix-to-mailman.py

The problem I have now is, for any undeliverable message, postfix sends a mail to mailer-dae...@lists.mydomain.net instead of mailer-dae...@mydomain.net.. so all undeliverable warning messages end up as new posts to my mailing list!

How can I change this?
I want it to send to mydomain.net, not lists.mydomain.net

Can I have any mailer-daemon type error sent to a custom address?

here is excerpt of my current conf:

main.cf--------------------------
myorigin = mydomain.net
mydestination =

relay_domains = mydomain.net, mydomain.com, mydomain.co.za, lists.mydomain.net, lists.mydomain.com, lists.mydomain.co.za

transport_maps = hash:/etc/postfix/transport
mailman_destination_recipient_limit = 1
---------------------------------

transport------------------------
mydomain.net             smtp:mail.myotherdomain.net
mydomain.com             smtp:mail.myotherdomain.net
mydomain.co.za           smtp:mail.myotherdomain.net
lists.mydomain.net       mailman:
lists.mydomain.com       mailman:
lists.mydomain.co.za     mailman:
---------------------------------

master.cf------------------------
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=mailman:mailman
  argv=/usr/lib/mailman/postfix-to-mailman.py ${nexthop} ${user}
---------------------------------

Reply via email to