Hi Daniel,

I assume from config.xml you are using james 2.3 (right?).

What if you are not using multiple remote servers, but simply match All: do you see also see that behaviour? What also if you get rid of the 'mail.smtp...' tags?

Thx, Eric

On 10/05/2013 09:20, Daniel Putra wrote:
Hi

I have a case where a user sends email via MS Outlook and James as mail
server and then remote delivered via gmail's servers. For some reason
random emails are not sent with the sender's address but with another
user's email address.
This is quite fatal as if the recipient replys to the email a user who is
not intended to see that email is getting it and the sender has no idea
that the recipient actually replyed.

There must be some flaw in my setup that James swaps the sender with the
gatewayusername. Your help is appreciated.

Best Regards
Daniel Putra


I have the setup as below.

config.xml:
     <mailet match="SenderIs=ren...@mydomain.com, sa...@mydomain.com,
market...@mydomain.com" class="RemoteDelivery">
         <outgoing> file://var/mail/outgoing/ </outgoing>
         <delayTime>  5 minutes </delayTime>
         <delayTime> 10 minutes </delayTime>
         <delayTime> 45 minutes </delayTime>
         <delayTime>  2 hours </delayTime>
         <delayTime>  3 hours </delayTime>
         <delayTime>  6 hours </delayTime>
         <maxRetries> 20 </maxRetries>
         <deliveryThreads> 1 </deliveryThreads>
         <sendpartial>false</sendpartial>
         <bounceProcessor>bounces</bounceProcessor>
         <gateway>smtp.gmail.com</gateway>
         <gatewayPort>25</gatewayPort>
         <mail.smtp.localaddress>10.0.0.1</mail.smtp.localaddress>
         <mail.smtp.localhost>server4.myDomain.local</mail.smtp.localhost>
         <mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>

         <gatewayusername>ren...@mydomain.com</gatewayusername>
         <gatewayPassword>somepw</gatewayPassword>
     </mailet>


     <mailet match="SenderIs=lde...@mydomain.com, lyne...@mydomain.com"
class="RemoteDelivery">
         <outgoing> file://var/mail/outgoing/ </outgoing>
         <delayTime>  5 minutes </delayTime>
         <delayTime> 10 minutes </delayTime>
         <delayTime> 45 minutes </delayTime>
         <delayTime>  2 hours </delayTime>
         <delayTime>  3 hours </delayTime>
         <delayTime>  6 hours </delayTime>
         <maxRetries> 20 </maxRetries>
         <deliveryThreads> 1 </deliveryThreads>
         <sendpartial>false</sendpartial>
         <bounceProcessor>bounces</bounceProcessor>
         <gateway>smtp.gmail.com</gateway>
         <gatewayPort>25</gatewayPort>
         <mail.smtp.localaddress>10.0.0.1</mail.smtp.localaddress>
         <mail.smtp.localhost>server4.myDomain.local</mail.smtp.localhost>
         <mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>

         <gatewayusername>lde...@mydomain.com</gatewayusername>
         <gatewayPassword>somepw</gatewayPassword>
     </mailet>
  ... 7 other ones like above.


This is how the email looks like, the actual sender was Renate but now
there is ldewit as sender instead of Renate.
-------------------------------------------------------
From: Renate <lde...@mydomain.co.za>
Date: Thu, 9 May 2013 12:59:16 +0200
To: <pataor...@gmail.com>; <209220...@mycput.ac.za>
Subject: Meeting for an evaluation

Dear Avela...
-------------------------------------------------------


mailet.log:
09/05/13 12:59:16 INFO  smtpserver: Connection from renate.myDomain.local
(10.0.0.13)
09/05/13 12:59:16 INFO  smtpserver: Successfully spooled mail
Mail1368097156414-66 from ren...@mydomain.co.za on 10.0.0.13 for [
209220...@mycput.ac.za, pataor...@gmail.com]

smtpserver.log:
09/05/13 12:59:16 INFO  smtpserver: Connection from renate.myDomain.local
(10.0.0.13)
09/05/13 12:59:16 INFO  smtpserver: Successfully spooled mail
Mail1368097156414-66 from ren...@mydomain.co.za on 10.0.0.13 for [
209220...@mycput.ac.za, pataor...@gmail.com]


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to