Hey all,
I found a second topic where I am not sure how postfix behaves. The old virtual_domains file just lists all domains (one per line), and can directly be used in virtual_alias_domains. However, in my virtual aliases table on OpenSMTPd, I have the following line-types si...@simonhoffmann.net simon @list.simonhoffmann.net simon simon simon nore...@simonhoffmann.net /dev/null s...@simonhoffmann.net error:550 no spam here! The first line is obvious. Mail addressed to the email address is delivered to the UNIX user. The second line is also obvious, as this is a catchall for a domain. In Postfix this has also the lowest priority so I don't break my current alias file. With the following lines however, I am not sure if this is possible with postfix. For the third line, the documenation under http://www.postfix.org/virtual.5.html specifies user address, address, ... Redirect mail for user@site to address when site is equal to $myorigin, when site is listed in $mydestination, or when it is listed in $inet_interfaces or $proxy_interfaces. The virtual domain however is not part of either myorigin or mydestination, and is abviously not an IP address so inet/proxy_interfaces does not apply either. So I am not sure if this would work and the third line would be an accepted line or if I need to replace this line with a user@domain line for every virtual domain. The fourth line in the old alias file silently discard a mail. OpenSMTPd allows the right hand site to be either a unix user, a different email address or simply a path to a file to which it will append the new email. Thus /dev/null on the right hand site would mark the email as successfully received to the sending server, but then discards the mail internally. Is this possible with postfix as well? Lastly, the fifth line bounces the email with the given error code and the given message. I have used this to disable specific address on an otherwise catch all domain. The spam example above is only an example, I have used this for address that were previously used but are not any longer and I would like the sender to know that this address is no longer in use. Is something like this possible as well? And then I have read the following in the documentation: /etc/postfix/virtual: virtual-alias.domain anything (right-hand content does not matter) The virtual-alias.domain anything entry is required for a virtual alias domain. Without this entry, mail is rejected with "relay access denied", or bounces with "mail loops back to myself". Do I understand it correctly that this is only necessary if I do not use virtual_alias_domains? If I use this separate file to specify only the domain names, this line is not needed in the alias mapping file, right? Thanks for your help! Cheers, Simon
signature.asc
Description: PGP signature
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org