Results 1 to 5 of 5
Thread: Exim4 Forwarding to Gmail
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
01-06-2008 #1
- Join Date
- Jan 2008
- Posts
- 3
Exim4 Forwarding to Gmail
Code:echo myname@gmail.com > ~/.forward
Code:2008-01-06 13:50:46 1JBdOI-0005sm-4Q <= myname@localhost U=myname P=local S=388 2008-01-06 13:50:48 1JBdOI-0005sm-4Q => myname@gmail.com <myname@localhost> R=smarthost T=remote_smtp_smarthost H=gmail-smtp.l.google.com [209.85.199.109] X=TLS-1.0:RSA_3DES_EDE_CBC_SHA1:24 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com" 2008-01-06 13:50:48 1JBdOI-0005sm-4Q Completed
-
03-01-2008 #2
- Join Date
- Mar 2008
- Posts
- 2
By chance, are you sending the test message from your Gmail account? I just ran into this same issue, but my smart host is my ISP, not gmail. The following scenario always fails:
Gmail --> Local SMTP --> ISP --> Gmail
When I tried from a secondary email account, I was able to get the messages through.
Non-Gmail --> Local SMTP --> ISP --> Gmail
Also works, when I change the forwarding address, to some place other than Gmail.
Gmail --> Local SMTP --> ISP --> Non-Gmail
-
03-01-2008 #3
- Join Date
- Jan 2008
- Posts
- 3
I'm just using a script which calls sendmail locally. If I remove the .forward file, the email shows up correctly in /var/mail, but when I add the .forward I don't see anything anywhere. I just see the above in my logs which makes it look like it's trying to send the email to gmail.
-
03-01-2008 #4
- Join Date
- Mar 2008
- Posts
- 2
Your exim logs look the same as mine, so I think it is configured correctly. Have you tried setting your foward e-mail address to a non-gmail address? I have gmail accepting my local emails correctly now, but I am using my ISP as the smart host. By setting google as your smart host, you are telling the mail server to send a message to itself, which might or might not work.
There is definitely some filtering going on at Google's end. Just now I created a new gmail account and tried to link it back to my main account using the forwarding options. So if I send from account1 to account2, I expect it to be forwarded back to account1 ... but it is not. The forwarding only works if the e-mail comes from outside of google's mail server.
-
03-01-2008 #5
- Join Date
- Jan 2008
- Posts
- 3
Wow, it looks like gmail just applies some rather sophisticated filtering on the messages. It works properly sent to other domains. However, if I sent it to an account that I have gmail retrieve through POP3 it will show up in that account, but gmail will filtered it out when it retrieves it.
So basically the short answer is that gmail is picky about acting as a smarthost. I'll have to see if my ISP gives me smarthost support, since that'll probably cause far fewer problems.