[exim] Configuring Exim on Cygwin for SMTP service provider …

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Vaidya nathan
Dátum:  
Címzett: exim-users
Tárgy: [exim] 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@??? 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.

ThanksFrom addw@??? Wed Aug 26 14:55:14 2009
Envelope-to: exim-users@???
Received: from freshmint.phcomp.co.uk ([78.32.209.33]:63096
    helo=mint.phcomp.co.uk)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.69)
    (envelope-from <addw@???>) id 1MgIxy-0007xh-R2
    for exim-users@???; Wed, 26 Aug 2009 14:55:14 +0100
Received: from addw by mint.phcomp.co.uk with local (Exim 4.63)
    (envelope-from <addw@???>)
    id 1MgIxw-0000uS-W1; Wed, 26 Aug 2009 14:55:09 +0100
Date: Wed, 26 Aug 2009 14:55:08 +0100
From: Alain Williams <addw@???>
To: Vaidya nathan <vvaidy@???>
Message-ID: <20090826135508.GW18088@???>
Mail-Followup-To: Vaidya nathan <vvaidy@???>,
    exim-users@???
References: <20090826114935.44749.qmail@???>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090826114935.44749.qmail@???>
User-Agent: Mutt/1.4.2.2i
Organization: Parliament Hill Computers Ltd
X-Spam-Score: -0.9 (/) 
X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL=-1.381, BAYES_00=-1.5,
    EXIM_LOG=-1, URIBL_BLACK=3 autolearn=no version=3.1.8
Cc: exim-users@???
Subject: Re: [exim] Configuring Exim on Cygwin for SMTP service provider
    authentication
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=unsubscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subject=help>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Aug 2009 13:55:14 -0000


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.


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>