Topic: Can I request some clarification on hosting mail for multiple domains
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS
- Related log if you're reporting an issue:
Hi all, firstly, a great thank you to all involved in iRedMail, I absolutely love it.
I have a question regarding hosting emails for multiple domains,Amavis and Spamassasin .. apologies if I overdo the background, I want to make sure I cover as much as possible.
For simplicity, I have two domains: domain1.com and domain2.co.uk
iRedMail is hosted on domain1.com, and Apache is set up with virtual hosts for both domains, with files located in /srv/www/domain1.com and /srv/www/domain2.co.uk
I recently transferred a previous version of iRedMail from a VPS running 10.04. I followed this guide : http://www.iredmail.org/wiki/index.php? … ail.Server
I now run 12.04 and the latest version of iRedMail.
I also used scp to transfer the actual websites from /srv/www/
Everything went pretty much according to plan. However, we noticed that firstname.lastname@example.org started getting a lot of spam, whereas before it received none.
This includes the expected emails selling little blue pills but also emails "from" (in theory) email@example.com to firstname.lastname@example.org and none were being marked as ***SPAM*** in the subject and the headers only contained "X-Virus-Scanned: Debian amavisd-new at mail.domain1.com" but no X-Spam-Score etc
So having searched through this forum, I found that I can edit /etc/amavis/conf.d/50-user and change
@local_domains_maps = ['mail.domain1.com' , 'domain1.com']
so it included "domain2.co.uk"
Having done that, and set
$sa_tag_level_deflt = -1000;
to ensure all flags are being displayed and finally
in /etc/spamassassin/local.cf to make sure the header was being marked as spam.
So my question is, is it normal to have to manually set the domain in local_domains_map? I never had to do this with my previous set up, so I wondered if maybe something has changed or possibly something isn't quite configured correctly?
Apologies for such a long winded post.
Get fast and professional support from iRedMail developers: