Phil Gunhouse a écrit : > Hi, have googled and searched the list for an answer so hope this isn't a > regular query... we're moving from a sendmail configuration to Postfix > primarily for database configured virtual mailboxes and the ease of > management that entails, we wish to manage both users within our domain and > other virtual domains under one umbrella, but to retain some 'unix account' > processing, via the local delivery agent, for bounce handlers, mailing list > software etc. > > It appears that things are not designed to allow delivery to virtual > mailboxes for the domain in which the mailserver lives, which is in effect > what we want to achieve, quote: 'NEVER list a virtual alias domain name as a > mydestination domain!' >
myhostname = foo.example.com mydomain = example.com mydestination = $myhostname, localhost, localhost.$mydomain virtual_mailbox_domains = $mydomain and use virtual_alias_maps to redirect "unix" users to local: j...@example.com j...@localhost fool...@example.com fool...@localhost foolist-subscr...@example.com foolist-subscr...@localhost ... for mailing lists, it is simpler to reserve a specific domain such as lists.example.com. then you can deliver such mail via local (by adding lists.example.com to mydestination) or via a transport that you define in master.cf (in which case, you can configure lists.example.com as a virtual mailbox domain). > I can 'fudge' the situation by configuring the mailserver under a fake > internal domain to allow virtual mailboxes for the 'real' domain to work, > then 'fix' things so the server appears externally as the 'real' domain to > match DNS lookups etc., finally forwarding mail to > unixaccount.mycompany.local where local processing is required... > > myhostname = mailserver.mycompany.local > mycompany = mycompany.local > myorigin = mycompany.com > smtp_helo_name = mailserver.mycompany.com > smtpd_banner = mailserver.mycompany.com ESMTP $mail_name > > ... but this doesn't feel like a proper solution. Can the list recommend any > tried and tested configurations for achieving this mixed scenario. > >