Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Configuring Exim on Cygwin for SMTP service provider authentication

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


vvaidy at rediffmail

Aug 26, 2009, 4:49 AM

Post #1 of 4 (730 views)
Permalink
Configuring Exim on Cygwin for SMTP service provider authentication

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 [at] domain 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.

Any help is appreciated.

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


addw at phcomp

Aug 26, 2009, 6:55 AM

Post #2 of 4 (680 views)
Permalink
Re: Configuring Exim on Cygwin for SMTP service provider authentication [In reply to]

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 [at] domain 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.

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_username auth_pass=secret auth_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

--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>

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


frank at bcsi

Aug 26, 2009, 7:21 AM

Post #3 of 4 (682 views)
Permalink
Re: ***SPAM*** Re: Configuring Exim on Cygwin for SMTP service provider authentication [In reply to]

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 [at] domain 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_username auth_pass=secret auth_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 [at] rogers : 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 [at] bcsi

Registered Linux-User #312398 with the Linux Counter, http://counter.li.org.
Attachments: frank.vcf (0.22 KB)


addw at phcomp

Aug 26, 2009, 8:29 AM

Post #4 of 4 (684 views)
Permalink
Re: Configuring Exim on Cygwin for SMTP service provider authentication [In reply to]

On Wed, Aug 26, 2009 at 02:55:08PM +0100, Alain Williams wrote:
> On Wed, Aug 26, 2009 at 11:49:35AM -0000, Vaidya nathan wrote:
> > Hi
> >
> > I'm quite new to Exim & Cygwin.
> > ...

>
> OK, add a router like:
> ...

I added that to the wiki, complaints about errors to me:

http://wiki.exim.org/AuthenticatedSmtpSmartHost

--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>

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

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.