procmail
[Top] [All Lists]

mailforward over multiple Servers (international)

2006-06-08 07:38:32
Hello,

now I am in the time where I start oficiell my CyberCenter Network
and but I have a problem with my courier and procmail because
mailforwarding. 

All Customesr are using <localpart(_at_)cybercenter(_dot_)SDL(_dot_)TLD> and my
mainserver <mail.cybercenter.SDL.TLD> is in Paris.  Since courier-mta
can not forward the mails from one server to another I must do it with
procmail, which mean:

I have for each country (DE, FR, MA, IR, TR) a list of E-Mails and
procmail should redirect/forward the messages to the right Mailserver
like <mbox-ir.cybercenter.SDL.TLD> where the <courier-imap> is waiting.

I was thinking on something like

----8<------------------------------------------------------
# Here I need the full RECIPIENT email like <local(_at_)sld(_dot_)tld>
RECPFQDN=`formail ?????`

# strip the Domain-Part
RECPLOCAL=`echo $RECPFQDN |sed s/@.*//`

:0
* ? grep -i -w $RECPFQDN $IRAN.list >/dev/null 2>&1
! $RECPLOCAL(_at_)mbox-ir(_dot_)cybercenter(_dot_)SDL(_dot_)TLD

:0
* ? grep -i -w $RECPFQDN $TURKEY.list >/dev/null 2>&1
! $RECPLOCAL(_at_)mbox-tr(_dot_)cybercenter(_dot_)SDL(_dot_)TLD

:0
* ? grep -i -w $RECPFQDN $GERMANY.list >/dev/null 2>&1
! $RECPLOCAL(_at_)mbox-de(_dot_)cybercenter(_dot_)SDL(_dot_)TLD

...
----8<------------------------------------------------------

The first problem is, that I have problems to get the $RECPFQDN since
sometimes the E-Mails look a little bit weired...

Note 1: Since there is no heavy traffic (arround 200 messages per day)
        currently, I have all mboxes on my Server in Paris and it is
        working.

Note 2: Receiving MTA is always a "courier-mta-ssl" and I do allready
        prefiltering (must use maildrop in embedded mode because it is
        on smtp-level) which drops allready over 1500 SPAMs per day.
        The rest is done on the <mbox-CC> using user setings (procmail,
        spamassassin, f-prot, ...)

Note 3: SMTP-Relays for the clients is always the <mbox-CC> server
        using SSL/TLS which mean, outgoing traffic does not go over
        Paris.

If you have better ideas, please let me know, but no Killer-Configs
with "postfix", "exim" or "sendmail" on which I have NO overview.

Greetings
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • mailforward over multiple Servers (international), Michelle Konzack <=