1

Topic: Multidrop local mailserver - and one external address in same domain

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== Hello,

First of all: Thank you for creating iRedMail, made it possible for me to get
a mailserver running very quick and smoothly!

I have the following (not ideal - I know) konfiguration:
Server is a local mailserver which retrieves via fetchmail(single mode) from a provider located MX.
office@mydomain.com -> mduser@mydomain locally.
this is a catchall account which catches all but zzzz@mydomain.com
mduser uses Sieve filters to distribute according to 'Delivery-To', 'To','CC' headers
This works OK (I have read the comments about 'use and misuse of multidrop'....)
The mail is then distributed to
aaaa@mydomain.com
bbbb@mydomain.com
.....

But the problem is:
if zzzz@mydomain is setup as local user,
- his emails are only delivered locally and never be sent out to MX
if zzzz@mydomain is not setup as local user then mails from this user are
rejected as not beeing in virtual user table.

What I need is a mixture of both variants:
accept zzzz@mydomain.com emails although it is not a local user
(except from verify against virtual user table) but deliver
externally

Best Regards,

    Marcovaldo


==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend MySQL:
- Linux/BSD distribution name and version: Debian Squeeze
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Multidrop local mailserver - and one external address in same domain

Hello Again,

I try to ask simpler questions:

1) How is it possible to override(disable) the crosscheck if user is in vmail table for
zzzz@mydomain.com only (prevent SMTP 550 5.1.0 reject for that sender)?
All other addresses like aaaa@mydomain...yyyy@mydomain (valid local users)
shall be checked to reject forged spam senders like abcd@mydomain.com.
Where is this check done? in policyd?

or alternately
2) if zzzz@mydomain.com is a valid local user, how to prevent local delivery and
SMTP send to MX instaed (only for this local user, all other shall be delivered as
usual). Only zzzz@mydomain.com shall be treated like being anyuser@anydomain.

Best Regards,


   Marcovaldo

3

Re: Multidrop local mailserver - and one external address in same domain

Dear ZhangHuangbin,

Can you tell me please where I can  disable the check if a certain sender zzzz@mydomain.com
exists in the local user table(only for this single email address)

I tried to set
bypass_spam_checks_maps => ['zzzz@mydomain'],
bypass_header_checks_maps => ['zzzz@mydomain'],
in /etc/amavis/conf.d   (section MYUSERS)

w/o any effect.

Any suggestions?

Thank you in advance for your help!


Best Regards,

    Marcovaldo

4

Re: Multidrop local mailserver - and one external address in same domain

Try this:

*) Set a per-domain transport for domain "mydomain.com". e.g. smtp:[remote_mx]:25.
*) Set a per-user transport for user "zzz@mydomain.com". Just use the default one: dovecot, then mails sent to zzz@ will be delivered locally.

5

Re: Multidrop local mailserver - and one external address in same domain

ZhangHuangbin wrote:

Try this:

*) Set a per-domain transport for domain "mydomain.com". e.g. smtp:[remote_mx]:25.
*) Set a per-user transport for user "zzz@mydomain.com". Just use the default one: dovecot, then mails sent to zzz@ will be delivered locally.

Thank you!

In the meantime I have created a work-around:
zzzz@mydomain.com is again a iRedMail user. So receive of mail from this is not rejected at iRedmail server (@mydomain).
If another user (for example aaaa@mydomain sends to zzzz@mydomain this goes to local delivery into iRedserver.
There a filter redirects to zzzz@myotherdomain (which then uses the default smtp_auth to MX of provider). from zzzz@myotherdomain it is forwarded again to zzzz@mydomain (ending up at MX).
(A little bit as scratching with the right toe at the left ear but working....)

I will tryout your 2nd suggestion later on.
the per user transport: shall this be entered into field 'transport' in table vmail/mailbox?

Kind greetings from Vienna,

    Marcovaldo

6

Re: Multidrop local mailserver - and one external address in same domain

marcovaldo wrote:

the per user transport: shall this be entered into field 'transport' in table vmail/mailbox?

Yes.