4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] smart-host using ...
FromSent OnAttachments
Michelle KonzackApr 19, 2007 9:42 am 
Gordon MessmerApr 19, 2007 11:03 am 
Michelle KonzackApr 20, 2007 7:49 am 
Gordon MessmerApr 20, 2007 10:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] smart-host using courier-mtaActions...
From:Michelle Konzack (linu@freenet.de)
Date:Apr 20, 2007 7:49:16 am
List:net.sourceforge.lists.courier-users

Hello Gordon,

tank you for your answer...

Am 2007-04-19 11:03:46, schrieb Gordon Messmer:

Michelle Konzack wrote: Clarify the "courier" server's network connectivity, please. You want it to send mail through the laptop, but receive mail directly from your ISP?

ISP +-----+ // +-----+ mx.freenet.de (5)| L |(4) // (3)| S |(1) port 587 <------| A |<--------//------| E |-----> | P | // | R | GSM | T | // | V | EDGE/IMODE fetchmail ------>| O |------//-------->| E |<----- or (6)| P |(7) // | R |(2) MX of my domain +-----+ // +-----+

(1) Should only allow messages from <linu@freenet.de> to use my cellphone and use <mx.freenet.de:25> (DOES NOT WORK CURRENTLY)

(2) Is "fetchmail" and fetch ONLY <linu@freenet.de> over my cellphone using GSM/EDGE. (WORKS)

(3) Is now done by adding the "esmtproute" :[192.168.0.75] where the IP is the FIXED IP of my Laptop if I am in my local network and now I have several 100 message in the queue from my Laptop... (IT JUST WORKS but the retrys/delays nust be changed to look all 15 minutes for the Laptop if not availlable for 7 days and then send fail message)

(4) Should accept ANY messages coming from my server 192.168.0.69

(5) If an internet connection is detected, send all queued messages using

(6) Is "fetchmail" sucking down nearly 160 accounts over THE NET. I use "procmail" to save it into ${HOME}/Maildir on the laptop and move it (7) with a script (if I am back in the local network) to the server.

Sending mail through the laptop should be simple. Just create /etc/courier/esmtproutes, and put a default route to the laptop's IP. You'll need to make sure that the laptop gets the same IP each time it's connected, so configure it statically, or configure your DHCP service to give it a specific IP address.

/etc/courier/esmtproutes: :[192.168.1.5]

OK, this works and I have several 100 messages laying around in the queue of the Laptop... :-/ It was 2fast4me :-)

See the "esmtproutes" section of the courier(8) man page.

Yeah, I know, but with this I have some trouble, since

1) "esmtproutes" is only for the receiving domain not for the sending

2) "esmtpauthclient" is for sending...

How can I configure it to send always to the configured "esmtproutes" but NOT messages send from <linu@freenet.de> which should go over the GSM/EDGE?

Please note, that I have several E-Mails in the domain <freenet.de>

That's harder. Clarify how you want to have this happen. The "courier" server can't give all of its messages to the laptop if the laptop is also configured to give them all to the "courier" server.

Which mean, COURIER does not remember, which messages it has gotten from my Server and should be posted to THE NET and the messgaes I have fetched or gotten from the MX to the local server?

I was thinking courier know what to do, since:

If I write a message @HOME, my SERVER spool it and "esmtproutes" it to the LAPTOP, it is clear, that the LAPTOP is searching for the <mx.freenet.de> to send it out...

If I get a message over my MX, it should be clear, that the LAPTOP should "esmtproutes" it to the SERVER in my local network...

Does this not work?

Maybe I will eliminate the script used in (3) and push the messages from fetchmail directly into the Laptops "courier-mta"

So you're putting messages into Maildirs, now, but you want them on the laptop? Wouldn't it be easier to just put them in the queue on the "courier" server, and let it push them to the laptop?

You have missunderstood it... See ASCII art above...

OK, so configure the "courier" server as a RELAYCLIENT. See "makesmtpaccess".

OK, there is already a default file which contain:

192.168 allow,RELAYCLIENT

A.b) I have (on my laptop) setup /etc/courier/esmtpauthclient with mx.freenet.de:587 <user_name> <passwd> But it seems not to work, even if I send a messages local from mutt. (currently I am using again "ssmtp")

I'm not sure if port specifications are valid there. Maybe someone else does.

What *does* seem to happen on outbound deliveries?

It does not accept the 587 which I must use since the french ISP <www.free.fr> and some others are blocking port 25. There is something like no route or such...

B) How to configure my local "courier" that it use my laptop "courier-mta" exclusivly for ALL outgoing messages except my own domain (which is send directly over GSM/EDGE) as smarthost?

Use "esmtproutes". You'll need a route for your own domain, and then one for the default.

I need on my local SERVER (192.168.0.69)

:[192.168.0.75]

and on my LAPTOP (192.168.0.75)

freenet.de: mx.freenet.de,587

and since I must use ASMTP on the LAPTOP the "esmtpauthclient"

mx.freenet.de <login> <passwd>

OK? - Tomorrow (Friday) I should know more... or I am Off-Line :-/ and you must read my mind :-) to know whats going wrong here!