Re: [exim] Configuring Exim on Cygwin for SMTP service provi…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Vaidya nathan
Fecha:  
A: frank, addw
Cc: exim-users
Asunto: Re: [exim] Configuring Exim on Cygwin for SMTP service providerauthentication


Hi Frank, Alain

Thanks for you help.

I could easily use Frank's suggestion & it worked



Vaidy



On Wed, 26 Aug 2009 23:01:04 +0530 wrote

>Hi Vaidya.






Alain Williams wrote:

> On Wed, Aug 26, 2009 at 11:49:35AM -0000, Vaidya nathan wrote:


>


>> Hi


>>


>> I'm quite new to Exim & Cygwin.


>>


>> But I could successfully download & install Exim on Cygwin with my Windows XP SP2.


>>


>> I'm trying to configure exim (4.69) to send mail thru my service provider(SMTP). But my service provider requires a user/password for SMTP authentication & i'm unable to configure this.


>>


>> var\log\exim\exim_main.log shows the following error


>>


>>


>>


>> 2009-08-26 10:59:33 KOYXX3-00023K-P0 ** user@??? R=send_to_gateway T=remote_smtp: SMTP error from remote mail server after MAIL FROM: SIZE=3241: host remote_mail_server [xx.xx.xx.xx]: 530 5.7.1 Client was not authenticated


>>


>>


>>


>> My windows XP system is on a local domain (domainA.com) & my service provider is on a remote domain (domainB.com). I just need to transfer all the mails from exim over to the remote domain.


>>


>


>


I have the same problem with my isp.



> OK, add a router like:


>


> outgoing:


> driver = manualroute


> domains = ! +local_domains


> transport = domainB_auth


> route_list = * outgoingMta.domainB.com


>


>


> Have a transport like:


>


> domainB_auth:


> driver = smtp


> hosts_try_auth = mta_domainB_auth


>


> In your authenticators have:


>


> begin authenticators


>


> cram_md5:


> driver = cram_md5


> public_name = CRAM-MD5


> client_name = "${extract{auth_name}{${lookup{$host}lsearch{/etc/exim/smtp_users}{$value}fail}}}"


> client_secret = "${extract{auth_pass}{${lookup{$host}lsearch{/etc/exim/smtp_users}{$value}fail}}}"


> plain:


> driver = plaintext


> public_name = PLAIN


> client_send = "${extract{auth_plain}{${lookup{$host}lsearch{/etc/exim/smtp_users}{$value}fail}}}"


>


> # The file /etc/exim/smtp_users contains lines like:


> # mta_domainB_auth:auth_name=my_usernameauth_pass=secretauth_plain=^my_username^secret


>


> # See:


> #    http://www.tgunkel.de/docs/exim_smarthosts.en


> #    http://www.hserus.net/wiki/index.php/Exim


> #    http://linux.derkeiler.com/Mailing-Lists/Debian/2005-02/1926.html


>


>


This should work but because you are only dealing with a single isp smtp

server it would be easier to not use lsearch and do something like:



begin routers



smarthost:

driver = manualroute

domains = ! +local_domains

transport = remote_smtp

# rogers

route_list = * smtp.broadband.rogers.com byname





begin transports



remote_smtp:

driver = smtp

# b.c.s.i. - we have to authenticate against this smarthost

# rogers

hosts_require_auth = smtp.broadband.rogers.com





begin authenticators



# b.c.s.i. - used to authenticate to smarthost

fixed_login:

driver = plaintext

public_name = LOGIN

# rogers

client_send = :account-name@??? :account-passwd



And just put your authentication info in plain text.



Cheers.



--



Frank S. Bernhardt

b.c.s.i.

14 Halton Court

Markham, ON. Canada

L3P 6R3



905-471-1691 Voice

905-471-3016 FAX



frank@???



Registered Linux-User #312398 with the Linux Counter, http://counter.li.org.



--

## 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/