Re: [exim] Authenticate against another server

トップ ページ
このメッセージを削除
このメッセージに返信
著者: captain
日付:  
To: exim-users
題目: Re: [exim] Authenticate against another server
Hi,

I have the same problem and i'd like to use your script.

But, where do you configure the login and password ?

Do you have a sample of the exim router and transport ?

Regards

Florent

On Wed, Aug 11, 2010 at 8:18 PM, Edward Harvey
<eharvey@???> wrote:

> Thanks.  I rewrote it in python because I had some trouble getting SSL to
> work in perl.  But as you said, the basics were there, and it was pretty
> simple.  Here's my version:
>
> #!/usr/local/bin/python2.6
> import sys
> from smtplib import SMTP
>
> try:
>        # "timeout" only available in python 2.6
>        server = SMTP('smtp.gmail.com',587,timeout=10)
>
>        server.ehlo(sys.argv[1])
>        server.starttls()
>        server.ehlo(sys.argv[1]) # say hello again
>        # server.login raises an exception if authentication failure.
>        server.login(sys.argv[1], sys.argv[2])
>        server.quit()
>        result=0
> except:
>        result=1
> sys.exit(result)
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>