Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

Last post 01-15-2010, 23:26 by rbumm. 13 replies.
Sort Posts: Previous Next
  •  01-12-2010, 23:04

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    Help !! 

    After hours I have set up Mercury/32 on Windows Server 2003.   

    Windows SMTP and POP3 is disabled. Mercurys POP3 and SMTP server run fine. Added some users and some local domains. I sucessfully sent non-local mail via Mercury to googlemail and gmx via the inbuild send command. I receive external mails (send by  googlemail) to Mercury and find them in ther correct mail directories. I can poll the messages via Outlook Express nicely.Wonderful !! and intersting to watch what the hell is going on on port 110 :-) 

    My server hosts about ten domains, I have defined them as local hosts, and defined a local user info. All mails to info@xyz.com arrive now in the mail directory of local user info.

    However: mail forwarding (my primary goal)  from mercury user directory "info"  to non-local external mailservers like web.de or googlemail.com simply DOES NOT WORK here.  

    I have enabled "forwarding by FORWARD file" in core utilities and placed a FORWARD file into the mailbox of the "info" user from which I want to forward mails. 

    External mails to the "info" user arrive correct. Get stored in the correct directory. Forwarding is initiated. Finally, SMTP says that the mail to forward is accepted and delivered by the exterrnal webserver - but never arrives.  

    this seems to be a known phenomenom (from this forum and google researches) ........ Has something to do with forwarded emails FROM Headers ??

    I have lost nearly two days of my short life struggeling with this .. could some of you experts please help ? Thank you in advance ....

    regards

    rudolf

     

    Filed under:
  •  01-12-2010, 23:44

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    > External mails to the "info" user arrive correct. Get stored in the correct directory. SMTP says that the mail to forward is accepted and delivered by the exterrnal webserver - but never arrives.

    How about showing us a FORWARD file you are using and a session log of the mail being sent to the outside world.


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
  •  01-13-2010, 7:29

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    Forward-To: me@forwarddomain.com
    Deliver-Also: N

    i have also tried 


    Forward-To: <me@forwarddomain.com>
    Deliver-Also: N

    and

    Forward-To: "me@forwarddomain.com"
    Deliver-Also: N


    Session log follows. 


    Thank you. 

  •  01-13-2010, 10:49

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    I send an email from (external)  me.forwardmail.com account to my mercury server to info@mydomain.com. I expect to get it back. 

    Mail gets accepted and transferd ti the local user info in mercury, where the FORWARD file is located. 

    the session log of MercuryE -> forward try after correct receipt of the info mail. 



    08:08:03.296: --- Wed Jan 13 08:08:03 2010 ---
    08:08:03.306: Connect to '209.85.219.45', timeout 60.
    08:08:04.308: >> 220 mx.google.com ESMTP 5si86047542ewy.14<cr><lf>
    08:08:04.308: << EHLO SMTP Client<cr><lf>
    08:08:04.338: >> 250-mx.google.com at your service, [81.169.129.72]<cr><lf>
    08:08:04.338: >> 250-SIZE 35651584<cr><lf>
    08:08:04.338: >> 250-8BITMIME<cr><lf>
    08:08:04.338: >> 250-ENHANCEDSTATUSCODES<cr><lf>
    08:08:04.348: >> 250 PIPELINING<cr><lf>
    08:08:04.348: << MAIL FROM:<info@mydomain.com> SIZE=3064<cr><lf>
    08:08:04.378: >> 250 2.1.0 OK 5si86047542ewy.14<cr><lf>
    08:08:04.378: << RCPT TO:<me@forwarddomain.com><cr><lf>
    08:08:04.438: >> 250 2.1.5 OK 5si86047542ewy.14<cr><lf>
    08:08:04.448: << DATA<cr><lf>
    08:08:04.448: >> 354 Send from Rising mail proxy<cr><lf>
    08:08:04.448: << Received: from Spooler by SMTP Client (Mercury/32 v4.72) ID MO000090;<cr><lf> 13 Jan 2010 08:08:04 +0100<cr><lf>
    08:08:04.448: << Received: from spooler by myserver.net (Mercury/32 v4.72); 13 Jan 2010 08:07:57 +0100<cr><lf>
    08:08:04.458: << Received: from spooler by myserver.net (Mercury/32 v4.72)<cr><lf>
    08:08:04.458: << for <info@host.myserver.net>; 13 Jan 2010 08:07:46 +0100<cr><lf>
    08:08:04.458: << Resent-from: info@myserver.net<cr><lf>
    08:08:04.458: << Resent-Date: Wed, 13 Jan 2010 08:07:46 +0100<cr><lf>
    08:08:04.468: << X-Autoforward: 1<cr><lf>
    08:08:04.468: << Received: from mail-ew0-f211.google.com (209.85.219.211) by SMTP Server (Mercury/32 v4.72) with ESMTP ID MG00008E;<cr><lf>
    08:08:04.468: << 13 Jan 2010 08:07:40 +0100<cr><lf>
    08:08:04.468: << Received: by ewy3 with SMTP id 3so18073422ewy.33<cr><lf>
    08:08:04.468: << for <info@mydomain.com>; Tue, 12 Jan 2010 23:07:40 -0800 (PST)<cr><lf>
    08:08:04.478: << DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;<cr><lf>
    08:08:04.478: << d=forwarddomain.com; s=gamma;<cr><lf>
    08:08:04.478: << h=domainkey-signature:mime-version:received:date:message-id:subject<cr><lf>
    08:08:04.478: << :from:to:content-type;<cr><lf>
    08:08:04.488: << bh=YnfhvTRZ9FYyraC4Lpv5+hIJCqCeSxLU4gZWaoCCtuk=;<cr><lf>
    08:08:04.488: << b=s7lZ3ejXL2QzgRlsp4dcIX2DKvIJzmaaMChmdcb0M97c/uNxuHya66S3KO/DVZqdWf<cr><lf>
    08:08:04.488: << HRCzOc8r3XPY0APdsFqqpS8rOiTlj4AZ6sCNr0s/Uk3diUrbmM2gQC6zUH2N8+Vtx+Ku<cr><lf>
    08:08:04.488: << Ez1lTFoiNdyV+f0HPZDoHMao7erH2Qsy/4rnw=<cr><lf>
    08:08:04.488: << DomainKey-Signature: a=rsa-sha1; c=nofws;<cr><lf>
    08:08:04.498: << d=forwarddomain.com; s=gamma;<cr><lf>
    08:08:04.498: << h=mime-version:date:message-id:subject:from:to:content-type;<cr><lf>
    08:08:04.498: << b=UiPuCsfJ0Lq5txDb+9Jd1HOeSbyUeGmJ/SgrEC3Mlz2zvD+8mT+pxwDDzZd7MDQsyP<cr><lf>
    08:08:04.498: << Q4MBMg0xdP4mcDShBiYjVLMs2DkSM04Rs8PNUKOfprRDluXBG3tXRqHgo/hhuW3+rj3o<cr><lf>
    08:08:04.498: << JwvUoq1PvreuSXDD/uAIlLIlXsAjRVeK/J2eM=<cr><lf>
    08:08:04.498: << MIME-Version: 1.0<cr><lf>
    08:08:04.508: << Received: by 10.213.41.207 with SMTP id p15mr769288ebe.26.1263366460845; Tue, <cr><lf>
    08:08:04.508: << 12 Jan 2010 23:07:40 -0800 (PST)<cr><lf>
    08:08:04.508: << Date: Wed, 13 Jan 2010 08:07:40 +0100<cr><lf>
    08:08:04.508: << Message-ID: <bffbadca1001122307g53df3134g261ad3e912cbe9eb@mail.gmail.com><cr><lf>
    08:08:04.508: << Subject: w<cr><lf>
    08:08:04.518: << From: My Name <me@forwarddomain.com><cr><lf>
    08:08:04.518: << To: info <info@mydomain.com><cr><lf>
    08:08:04.518: << Content-Type: multipart/alternative; boundary=00148531acb91eb041047d066dff<cr><lf>
    08:08:04.518: << <cr><lf>
    08:08:04.518: << --00148531acb91eb041047d066dff<cr><lf>
    08:08:04.528: << Content-Type: text/plain; charset=ISO-8859-1<cr><lf>
    08:08:04.528: << Content-Transfer-Encoding: quoted-printable<cr><lf>
    08:08:04.528: << <cr><lf>
    08:08:04.528: << w<cr><lf>
    08:08:04.538: << --=20<cr><lf>
    08:08:04.538: << Mit freundlichem Gruwss<cr><lf>
    08:08:04.568: << <cr><lf>
    08:08:04.568: << --00148531acb91eb041047d066dff<cr><lf>
    08:08:04.568: << Content-Type: text/html; charset=ISO-8859-1<cr><lf>
    08:08:04.578: << Content-Transfer-Encoding: quoted-printable<cr><lf>
    08:08:04.578: << <cr><lf>
    08:08:04.578: << <br clear=3D"all">w<br>-- <br=<cr><lf>
    08:08:04.598: << <br><cr><lf>
    08:08:04.598: << <cr><lf>
    08:08:04.598: << --00148531acb91eb041047d066dff--<cr><lf>
    08:08:04.598: << .<cr><lf>
    08:08:05.700: >> 250 <cr><lf>
    08:08:05.710: << QUIT<cr><lf>
    08:08:05.740: >> 221 2.0.0 closing connection 5si86047542ewy.14<cr><lf>
    08:08:05.740: --- Connection closed normally at Wed Jan 13 08:08:05 2010. ---
    08:08:05.740:

    Seems to send the forward mail. This never arrives in me@forwarddomain.com . Seems to be filtered out by me@forwarddomain for unknown reason.

    I have tried two public email services (googlemail.com and web.de), same. In one instance I send from googlemail.com and define web.de as the receipt for forwarding mails - no luck. 

    If I send a mail directly to me@forwarddomain.com via Mercury's inbuild mail sending command - no problems, mail arrives. In this case, Mercury postmaster's Mercury adress (postmaster@myserver.net)  is in the FROM field.      

     

    My idea would be to force Mercury to put postmaster@myserver.net into the FROM field of forwarded mails. Cant figure out how. 

    Any idea ? Thank you. 


  •  01-13-2010, 16:58

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    My idea would be to force Mercury to put postmaster@myserver.net into the FROM field of forwarded mails. Cant figure out how. 

    Any idea ? Thank you.

    Aha, I see the problem you are trying to forward back to the originator and in many cases this does not work.  Forwarding is just a bounce and all of the original message data is retained, from:, Sender:, To:, Cc:, etc.  These system see this as a loop and just discard the message.  

    Tell me what you are trying to do exactly.  If you really need to send something back to the originator of the message then you can use a filter of some sort with a template to send back to the originator.  In this case the mail will be coming from the Mercury/32 server.  An example of a template is the e-mail address walkingman@tstephenson.com, if you send to this address you will get a canned message back.

     

     


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
  •  01-13-2010, 19:02

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    i try to tell the story again ....

    I get several messages to an adress "info" of different domains to my server, which hosts these domains. 

    info@domain1.de, info@domain2.de, info@domain3.de, all domains hosted on myserver.net. 

    I simply want to foward these info@ messages to my email account on lets say webprovider.com. I do not want to install exchange on my windows 2003 server.

    The simple SMTP and POP3 server included in a windows 2003 server does not support forwarding mails.

    So I installed Mercury/32, defined a local user "info" and defined all domains (domain1, domain2, domain3) as local hosts within Mercury.

    All mails addressed to info@domainxxx are now correctly delivered into Mercury's  "info" mail folder. The plan worked so far, and I was impressed. 

    From here, I wanted to forward those to my privat account automatically by a FORWARD file or a rule. That's the story so far. 


    The bouncing may be a problem in my particular test (above). However, NO mail ist forwarded. I have received today > 5 messages to info@xxx (into the local user "info" mail box)  from various  internet mail adresses - but none of them is delivered to my webprovider account. 

    :-( I will try your template (although I do not know what it is)  and report back. 

    Thank you sir ..... btw, nice hat you have there !


  •  01-13-2010, 20:08

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    The bouncing may be a problem in my particular test (above). However, NO mail ist forwarded. I have received today > 5 messages to info@xxx (into the local user "info" mail box)  from various  internet mail adresses - but none of them is delivered to my webprovider account. 

    The problem though is not with Mercury since it is doing exactly what it is supposed to be doing as shown by the MercuryE session log.  The can be a problem though of the receiving server not liking this sort of bounce message.  It could also be that they are blocking the MercuryE connection if you do not have a fixed IP address or the IP address does not have a valid host name or PTR record.

    You might try converting to MercuryC and sending via a SMTP relay host instead of direct.

     :-( I will try your template (although I do not know what it is)  and report back.

    Not sure this will help based on what you are trying to do.

     


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
  •  01-13-2010, 20:44

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    Thank you very much - I will try different mail servers. 

    regards

    r.

  •  01-13-2010, 21:37

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    rbumm:
    08:08:03.296: --- Wed Jan 13 08:08:03 2010 ---
    08:08:03.306: Connect to '209.85.219.45', timeout 60.
    08:08:04.308: >> 220 mx.google.com ESMTP 5si86047542ewy.14<cr><lf>
    08:08:04.308: << EHLO SMTP Client<cr><lf>


    This should be your FQDN

    08:08:04.338: >> 250-mx.google.com at your service, [81.169.129.72]<cr><lf>
    08:08:04.338: >> 250-SIZE 35651584<cr><lf>
    08:08:04.338: >> 250-8BITMIME<cr><lf>
    08:08:04.338: >> 250-ENHANCEDSTATUSCODES<cr><lf>
    08:08:04.348: >> 250 PIPELINING<cr><lf>
    08:08:04.348: << MAIL FROM:<info@mydomain.com> SIZE=3064<cr><lf>
    08:08:04.378: >> 250 2.1.0 OK 5si86047542ewy.14<cr><lf>
    08:08:04.378: << RCPT TO:<me@forwarddomain.com><cr><lf>
    08:08:04.438: >> 250 2.1.5 OK 5si86047542ewy.14<cr><lf>
    08:08:04.448: << DATA<cr><lf>
    08:08:04.448: >> 354 Send from Rising mail proxy<cr><lf>
    08:08:04.448: << Received: from Spooler by SMTP Client (Mercury/32 v4.72) ID MO000090;<cr><lf> 13 Jan 2010 08:08:04 +0100<cr><lf>
    08:08:04.448: << Received: from spooler by myserver.net (Mercury/32 v4.72); 13 Jan 2010 08:07:57 +0100<cr><lf>
    08:08:04.458: << Received: from spooler by myserver.net (Mercury/32 v4.72)<cr><lf>
    08:08:04.458: << for <info@host.myserver.net>; 13 Jan 2010 08:07:46 +0100<cr><lf>
    08:08:04.458: << Resent-from: info@myserver.net<cr><lf>
    08:08:04.458: << Resent-Date: Wed, 13 Jan 2010 08:07:46 +0100<cr><lf>
    08:08:04.468: << X-Autoforward: 1<cr><lf>
    08:08:04.468: << Received: from mail-ew0-f211.google.com (209.85.219.211) by SMTP Server (Mercury/32 v4.72) with ESMTP ID MG00008E;<cr><lf>
    08:08:04.468: << 13 Jan 2010 08:07:40 +0100<cr><lf>
    08:08:04.468: << Received: by ewy3 with SMTP id 3so18073422ewy.33<cr><lf>
    08:08:04.468: << for <info@mydomain.com>; Tue, 12 Jan 2010 23:07:40 -0800 (PST)<cr><lf>
    08:08:04.478: << DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;<cr><lf>
    08:08:04.478: << d=forwarddomain.com; s=gamma;<cr><lf>
    08:08:04.478: << h=domainkey-signature:mime-version:received:date:message-

    Also the DKIM sig does not match the SMTP MAIL FROM anymore.

    They are not rejecting the SMTP transaction, but I suspect these increase your 'spamminess' score in their post processing filtering, causing your mail to be silently dropped.

  •  01-13-2010, 23:32

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    The problem is I had to edit some of the domain names in the session log not to expose myself to the internet :-(

    I hope I did not mess up the fact that you mentioned ...

    I tried other forwarding target accounts but no success. Somehow the forwarded mails seem to be regarded as spammy ... If I send direct mails from Mercury the mails arrive, if I forward anything they vanish. 

    What would you suggest to do ? Do you get forwaridng to a non-local domain to run properly on your system ? 

    Or should I use completely other approach (save the incoming mail body somehow and forward it by a rule or script ? With the postmaster of the mercury domain as sender ?  

    Thanks anyway for all the answers  - awesome service here


     

  •  01-14-2010, 0:35

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    > The problem is I had to edit some of the domain names in the session log not to expose myself to the internet :-(
    >
    > I hope I did not mess up the fact that you mentioned ...
    >
    > I tried other forwarding target accounts but no success. Somehow the forwarded mails seem to be regarded as spammy ... If I send direct
    > mails from Mercury the mails arrive, if I forward anything they vanish.

    Ok, they can be seen as spammy because:

    1.    The EHLO string does not have a valid domain name.

    2.    The connecting IP address does not have a valid PTR record pointing to this host name.

    3.    The mail is coming back to the same server that sent mail.

    The last one you cannot fix but the others you should either have valid data or go via MercuryC to a relay host.


    > What would you suggest to do ? Do you get forwaridng to a non-local domain to run properly on your system ?

    Yes, no problems at all forwarding to a real account.  I do have problems forwarding to a GMail account if the mail came from a GMail server.


    > Or should I use completely other approach (save the incoming mail body somehow and forward it by a rule or script ? With the postmaster of
    > the mercury domain as sender ?  

    One way to do this is you use a mailing list for each info address.  The mailing list info for example gets the domain name of the host specified as the mail server in "Internet name for this system", say domain.com.  So any mail sent to info@domain.com will be passed to maiser to be processed and sent to the e-mail addresses in the mailing list membership file.  The sender here is the mail server and it is a new message but will contain the same From: field.

    For other domains in the domains list that are receiving mail for info you would need to alias them to info@domain.com.  That is info@domain1.com is aliased to info@domain,.com so it gets passed to maiser.




    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
  •  01-14-2010, 12:17

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    Wow, this works. 

    Thanks a lot. 

  •  01-15-2010, 9:23

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    Too early, sorry. After more testing I found out that I have still the same problem when sending via the mailing list. 

    The mailinglist sender ist still not the postmaster of mydomain, thus the mail still gets spamfiltered for unknown reason.

    Dont't understand this problem - sorry. I may provide a new session log later.  

  •  01-15-2010, 23:26

    • rbumm is not online. Last active: 01-15-2010, 23:32 rbumm
    • Not Ranked
    • Joined on 01-12-2010
    • Member
    • Points 120

    Re: Forward mails from user mailbox with FORWARD-file to non-local mail address fails !

    Thomas, I finally found the error. 

    All of the mails from Mercury/32 were regarded as Spam within googlemail. 

    Why i do not fully understand. 

    But at least Mercury worked ok. 

    Thanks you again for your help. 

View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page