Re: [exim] bSMTP questions

2006-05-15 Thread Arjan
Phil Pennock wrote:
 Your etrn_handler will probably invoke Exim to perform
 the deliveries; section 44.11 of The Exim Specification
 is helpful here.

 Even better: there's a cookbook example of handling this.
 If you get config.samples.tar.bz2 (or .gz) from one of
 the Exim file mirrors (in the same directory as Exim's
 source tarballs) and look at C037, then you'll see a
 fully working set-up, with explanation and notes on
 assumptions, provided by Dave C. in 2000 (and later
 converted to Exim4 syntax by Philip Hazel).


Thanks for your answer. However, i still don't get it to work. Probably i 
don't understand it right, but i've been trying and trying.

The example c037 doesn't seem to work for me, if i do exactly what is done 
there, the mail get bounced but without saying why. In the logs it looks 
like the message has been accepted and not bounced (but they are).

The only thing i want right now is that the mail for the bsmtp-domain that 
is stored in the dir /var/bsmtp/$domain will be delivered directly to the 
exchange-server when it comes online. Any way to do this is fine, as long as 
it works :)


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


Re: [exim] bSMTP questions

2006-04-27 Thread Phil Pennock
On 2006-04-25 at 18:35 +0200, Arjan wrote:
 I want to run an bSMTP server for the domainname 'testdomain.com'. After 
 reading and trying i added this to the exim.conf:

[snip ACL and local delivery BSMTP router/transport]

 That seems to work; mail sent to [EMAIL PROTECTED] is placed in the 
 /var/bsmtp/ dir.
 
 But now; i want the server to sent the mail to the other (non 24/7 connected 
 to the internet) server. I read that this is done with the command ETRN. So 
 i tryed to get that to work too. I have some parts working, but not all:

When Exim receives an ETRN command which passes the ACL, then it invokes
smtp_etrn_command.  This needs to be an external command which you
provide.

If you use:
  smtp_etrn_command = /path/to/etrn_handler $sender_host_address
then your etrn_handler program can look $sender_host_address up and
provide secure delivery.  You can use all of Exim's lookup logic to
provide whatever extra parameters you want.

Your etrn_handler will probably invoke Exim to perform the deliveries;
section 44.11 of The Exim Specification is helpful here.

Even better: there's a cookbook example of handling this.  If you get
config.samples.tar.bz2 (or .gz) from one of the Exim file mirrors (in
the same directory as Exim's source tarballs) and look at C037, then
you'll see a fully working set-up, with explanation and notes on
assumptions, provided by Dave C. in 2000 (and later converted to Exim4
syntax by Philip Hazel).

Regards,
-Phil

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


[exim] bSMTP questions

2006-04-25 Thread Arjan
Hi List, maybe this is a very dumb question, but for some reason i can't 
find the answers on the net.

I want to run an bSMTP server for the domainname 'testdomain.com'. After 
reading and trying i added this to the exim.conf:


acl_smtp_etrn = accept

# BSMTP router
route_append:
driver = manualroute
transport = smtp_appendfile
route_list = testdomeinnaam.nl

# BSMTP transport
smtp_appendfile:
driver = appendfile
directory = /var/bsmtp/${host}
use_bsmtp
user = mail
-

That seems to work; mail sent to [EMAIL PROTECTED] is placed in the 
/var/bsmtp/ dir.

But now; i want the server to sent the mail to the other (non 24/7 connected 
to the internet) server. I read that this is done with the command ETRN. So 
i tryed to get that to work too. I have some parts working, but not all:


-
telnet server2 25
Trying 10.0.0.62...
Connected to server2 (10.0.0.62).
Escape character is '^]'.
220 server2 ESMTP Exim 4.60 Tue, 25 Apr 2006 16:32:16 +0200
HELO server4
250 server2 Hello server4 [10.0.0.62]
ETRN #server4
250 OK
-

Now i would like that server2 sends the mail to server4. But it doesn't. I 
can't figure out what step i have to take now, or what i forget.

My questions:
- How can i get server2 to send the mail to server4 after the ETRN command? 
(or on another way?).
- How can i secure this so only server4 can get the mail and not everyone 
which type the ETRN command?

Thanks! 


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/