This is a discussion on Re: Problems with $mydomain entries in virtual within the mailing.postfix.users forums, part of the Mail Servers and Related category; Magnus wrote: >> However, I wanted to do some additional aliasing of my.domain, so I pu= t >&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Magnus wrote:
>> However, I wanted to do some additional aliasing of my.domain, so I pu= t >> them in /etc/postfix/virtual: >> >> michael@mydomain.com mth >> miguel@mydomain.com mth >> >> @mydomain.com bitbucket # defined in aliases as /dev/null > > Why on earth do you do this? You should not discard mail to invalid > recipients. Well, I thought that was the best way to eliminate spam ... better than telling the spammers that the users don't exist. With sendmail I have been running that way for years. Indeed the postfix man page for aliases(5) says: /file/name Mail is appended to /file/name. See local(8) for details of delivery to file. Delivery is not lim- ited to regular files. For example, to dispose of unwanted mail, deflect it to /dev/null. Q: What is your recommended way to flush 'unknown@mydomain.com' messages? >> Q: If I use the command line to send mail to 'jane' the maillog >> indicates that it is mapped to 'jane@mydomain.com' ... Is this >> correct behavior or is this a configuration error on my part? > > This is correct. Unqualified addresses will have @$myorigin appended to > them. That is undesirable behavior. jane has a local unix email account, but does not have a valid email account within mydomain.com She should only receive mail sent to 'jane@otherdomain.com', not mail sen= t to 'jane@mydomain.com' >> In sendmail I put mydomain aliases + otherdomain aliases in the >> virtusertable, with as little as possible in /etc/aliases. >> >> Q: Did I do something fundamentally wrong by mixing mydomain + >> otherdomain in the virtual table? > > It's quite possible to use virtual(5) instead of aliases(5), but it > has some drawbacks as you have noticed the hard way. Because you're > not following the textbook example, you have to be careful. Unfortunately, I thought that I *was* following the textbook example. The 'virtual' man pages do not mention anything about the local domains. And since I was migrating from the sendmail virtusertable I (mistakenly) assumed that they were functionally equivalent. The functionality of the aliases file is not the same as virtual. >> Q: What is the right way to handle what I want to do? > > I think aliases for local domains should be in aliases(5). Q: How do I do a domain-wide 'catch all' of mydomain.com within the aliases file? The equivalent of: @mydomain.com catchall Thanks, Michael |
![]() |
| Thread Tools | |
| Display Modes | |
|
|