Mail account and forwarder - how to not save local mail (forward only)

jedi

New member
Joined
Jan 27, 2015
Messages
3
Hi all

For most of the domains I host using DirectAdmin I set a forwarder to forward mail to a gmail account. From gmail you can use the "Send mail as" feature so instead of sending from "[email protected]" you can send as "[email protected]". Recently Google have changed things and now you need to authenticate with a valid mail account to set this up. So for some forwarders I have also created mail accounts.

But now mail is being stored locally AND being forwarded. How can I ceate a mail account and a forwarder and not save local copies?

Any help appreciated.
Cheers
Simon
 
You wrote:
Recently Google have changed things and now you need to authenticate with a valid mail account to set this up.
So why can't you set up the mailbox, enable "Send mail as" feature at Gmail, and then remove the mailbox?

Otherwise explain exactly what you need to do to authenticate, and perhaps I or someone else can come up with another idea.

For example, you can set your email client to send an email with any return address as you want, whehter or not you've got a mailbox. So if Gmail sends an email which you need to reply to in order to authenticate you should be able to do that. If you need a password, then the question is what does Google do with that password?

Jeff
 
You wrote:

So why can't you set up the mailbox, enable "Send mail as" feature at Gmail, and then remove the mailbox?

Otherwise explain exactly what you need to do to authenticate, and perhaps I or someone else can come up with another idea.

For example, you can set your email client to send an email with any return address as you want, whehter or not you've got a mailbox. So if Gmail sends an email which you need to reply to in order to authenticate you should be able to do that. If you need a password, then the question is what does Google do with that password?

Jeff

Thanks for the reply Jeff

I tried removing the mailbox, but alas it seems google checks the authentication every time you send a mail.

See this: https://support.google.com/mail/answer/22370 - it explains the need for SMTP authentication when using the "Send mail as..." feature.

Regarding setting the return address in my email client - most of the time I (and most of my users) use the Gmail web interface.

It would help if someone can explain to me how DA controls the forwards/local mail copies on the OS level so I can delve into some config files and see if I can work out what's going wrong...

Cheers
Simon
 
As described in this topic
https://support.google.com/mail/answer/21289?hl=en

You can clean the messages from the server.

8. Now you have a few options to choose from. Here’s our recommended settings:
  • Leave a copy of retrieved messages on the server - Check the box. Otherwise the emails in your other account will be deleted and you’ll only be able to access them in Gmail. Learn more.
 
Thanks for the recommendations.... I've taken the 'easy' option and written a cron script to find/purge mailboxes :)

Cheers
Simon
 
Back
Top