Wanting simple sendmail capabilities


I've been using exim4 on my linode for years now to receive mail and bounce it to another email address, via something akin to:

https://www.debian-administration.org/a … with_exim4">https://www.debian-administration.org/article/140/Handlingmailformultiplevirtualdomainswith_exim4

where I have a directory in /etc/aliases-domains for each of my virtual domains, and those files cause mail to be sent off to another location (gmail accounts…..)

On the gmail end, I've been using gmail to 'send mail as' username@oneOfMyVirtualDomains.com

All worked well until recently, when google changed their policy about this

http://googlesystem.blogspot.com/2014/0 … gmail.html">http://googlesystem.blogspot.com/2014/08/external-addresses-no-longer-use-gmail.html

and now mail messages sent from gmail look something like:

From: mygmailaddress@gmail.com On Behalf Of My Name

I don't want people seeing my gmail address.

SO.. all that to say… I'm wanting to set up a very simple SMTP server on my linode that I can use via gmail to 'send mail as' a user at one of the virtual domains that I'm hosting on my linode.

What's the easiest way to get this done? I don't want to complicate it more than necessary. Gmail lets me specify the SMTP server, username, and password. I'm OK with that. I have very few users on my linode, but if I had to I could add a user for each account I want to send mail as. I will need the server to be smart enough to realize that it needs to authentically send the mail as users from several different domains hosted on the linode.

And, I have a few scripts running on the linode itself that will need to send mail as user@virtualdomain.com.

What say ye, mail experts? How can I accomplish this as easily as possible. No mail receiving needed, beyond gmail initially authenticating and pushing the original mail out.



0 Replies


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct