using SMART_HOST with multiple auth info

  • Follow


I'm trying to use Gmail as a SMTP relay.

I currently have the basics working, so if I send mail from a local
account to an external address, it gets sent through a Gmail account.

However, this means that *every* local user's outgoing email gets
routed through the same Gmail account, which can be confusing.

I'd like to have, say, 3 different Gmail accounts, to handle 3
different kinds of outgoing email.

Does anyone know a way to accomplish this?

I have tried using the 'smarttable' feature (found here:
http://www.jmaimon.com/sendmail/anfi.homeunix.net/sendmail/smarttab.html)
However, that seems to only allow you to send through different SMTP
servers based on sender information.

I want to send to the *same* SMTP server (smtp.gmail.com), but with
different auth info (username/password) based on the sender's address.

Is that possible? Been done before?
0
Reply jwdevel (1) 11/22/2009 4:21:07 AM

On 11/21/2009 10:21 PM, j w wrote:
> I want to send to the *same* SMTP server (smtp.gmail.com), but with 
> different auth info (username/password) based on the sender's 
> address.

Is it not possible to treat the same server as different server 
(configurations) b/c of the different user credentials that are used?



Grant. . . .
0
Reply Grant 11/23/2009 4:22:53 AM


Grant Taylor <gtaylor@riverviewtech.net> wrote:
> On 11/21/2009 10:21 PM, j w wrote:
>> I want to send to the *same* SMTP server (smtp.gmail.com), but with
>> different auth info (username/password) based on the sender's
>> address.
>
> Is it not possible to treat the same server as different server
> (configurations) b/c of the different user credentials that are used?

It has been suggested that such "trick" may be possible via sendmail.cf
(short "R lines scripting") with smtp mailer configured to send one
message per one smtp connection [ I have not tried to test/rule out it ].

-- 
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : Andrzej.Filip@gmail.com
Hain't we got all the fools in town on our side?
And hain't that a big enough majority in any town?
  -- Mark Twain, "Huckleberry Finn"
0
Reply Andrzej 11/23/2009 6:46:44 PM

Grant Taylor wrote:
> On 11/21/2009 10:21 PM, j w wrote:
> > I want to send to the *same* SMTP server (smtp.gmail.com), but with
> > different auth info (username/password) based on the sender's
> > address.
>
> Is it not possible to treat the same server as different server
> (configurations) b/c of the different user credentials that are used?

If I understand http://mail.google.com/support/bin/answer.py?hl=en&answer=78775
section
"
Still can't send mail?
 If you tried configuring your SMTP server on port 465 (with SSL) and
port 587 (with TLS), but are still having trouble sending mail, try
configuring your SMTP to use port 25 (with SSL)."

correctly, one could fake two dummy Gmail SMTP hosts by creating a SSL
tunnel from a local port to smtp.gmail.com:465. A tunnel to port 587
wouldn't work, I guess, because the STARTTLS of the local sendmail
client will not verify the server certificate.

-ska
0
Reply ska 11/24/2009 8:40:15 AM

By combining the techniques used in the Features smart table and
auth-info, it should be possible to implement a feature with sender
dependant relay host and with sender dependant login credentials. This
would make it possible for sendmail to handle two different gmail.com
users with different gmail.com accounts and passwords.

This problem has been discussed on this news group before.

Is anyone in the developer community working on creating such a Feature?
If you are please email me.

What would be involved in writting such a feature? Where is the How to
for feature writting?



-- 
Paul Elliott                               1(512)837-1096
pelliott@BlackPatchPanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117
0
Reply Paul 1/11/2010 4:34:12 AM

Paul Elliott <pelliott@blackpatchpanel.com> wrote:
> By combining the techniques used in the Features smart table and
> auth-info, it should be possible to implement a feature with sender
> dependant relay host and with sender dependant login credentials. This
> would make it possible for sendmail to handle two different gmail.com
> users with different gmail.com accounts and passwords.
> [...]

*Why* do you need it? 
[Why can not the clients use direct smtp connections to gmail?]

-- 
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : Andrzej.Filip@gmail.com
Open-Sendmail: http://open-sendmail.sourceforge.net/
Laws are like sausages.  It's better not to see them being made.
  -- Otto von Bismarck
0
Reply Andrzej 1/11/2010 9:12:19 AM

>
> *Why* do you need it? 
> [Why can not the clients use direct smtp connections to gmail?]
>

That will break things like local mail delivery and forwarding.
Besides some users are not smart enough to set up their clients.

sendmail gives enormous flexibility at the expense of complexity. 


-- 
Paul Elliott                               1(512)837-1096
pelliott@BlackPatchPanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117
0
Reply Paul 1/11/2010 6:07:14 PM

6 Replies
525 Views

(page loaded in 0.104 seconds)

Similiar Articles:













7/23/2012 6:01:14 PM


Reply: