Roman Medina-Heigl Hernandez wrote:
Hello,I don't want my mail queue to fill due to fake mail (spam) so I'd like to reject as much mail as I could at the smtp stage (avoiding mail entering into my queues). My setup is multi-domain (vdomains) and it's working reasonably well for my hosted domains ("real") but not for those being "aliased". The problem (I guess) if that I'm using "wide" aliasing so I have an alias table (virtual_alias_maps) of the form: @aliasdomain.com @realdomain.com (no users are being especified).
Wildcards break recipient validation.
So all possible recipients at aliasdomain.com are being taken as "existing", and thus not being rejected by reject_unlisted_recipient rule. This is expected behaviour (I guess), but I'm wondering whether there is any elegant way to solve the problem without having to create one-to-one aliases such as: [email protected] [email protected], [email protected] [email protected], etc. Do you know a cute way to solve this? Thank you.
Use 1-1 mappings. Use a little script and a Makefile to let the computer build the aliased domain from the real domain list you already maintain. Size of the table is not an issue.
Your postconf output looks OK. -- Noel Jones
