[Exim] Re: send all postponed mesages?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: jeffrey+news
Fecha:  
A: Kevin Buzzard
Cc: exim-users
Asunto: [Exim] Re: send all postponed mesages?
[I am copying this message to the exim users mailing list. This is from
a thread on comp.mail.pine asking about how to get pine to postpone
message for when it is connected]

On 16 Sep 2000, Kevin Buzzard wrote:

> I've downloaded exim :-) I would _really_ appreciate some hints on
> how to make it do this.


What I have is in my exim configuration (actually, mine is a bit more
complicated) is

add to main options:

queue_only_file = remote/var/spool/exim/queue_remote

That will tell exim to not try remote deliveries if the file

/var/spool/exim/queue_remote

exits. My dial-up script removes the file and my ppp-down.local script
puts the file back. So exim won't try to delivery remotely when I am off
line. I force a "strong" queue run when I dial up with exim -qff

In my routers part of my exim configuration file, I replaced the default
lookuphost router with

send_to_gateway:
driver = domainlist
transport = remote_smtp
route_list = "* my-isps.smtp-server byname"


> Why is this any better than writing a perl script, by the way?


Because mail transport agents are designed to queue mail and perform
retries and do other things involved with mail transport. And once you
have this set up, you will be able to use any mailer on your system.
This is a general solution using tools that know about queing and moving
mail.

If you want to write a perl script to do this, take a look at the IMAP
tools that are available from the same place as the UW-IMAP server.
These tools use the same mail-box interface as pine, and allow tools for
non-interactive manipulation of mailboxes. Thus you could get at your
postponed folder with these. But it still won't be easy to write what you
are trying to do.

> I'm surprised there isn't a FAQ on this: it seems like a very natural
> question.


Yes. But running your own MTA is a far bigger job than configuring your
client. Ideally, pine should do disconnected mailing, but it does mean
building in some (more) features of an MTA into pine.

> If anyone could point me to anyhting, e.g. a thread
> in the exim mailing list, or some sendmail info, or anything this
> would be great. I am surprised pine can't do it itself.


On http://www.exim.org/ there is a FAQ section on diai-up.

For the exim mailing list, search for dial-up to find the threads.

But yes, someone (not me) should write a HOWTO for this.

-j


--
Jeffrey Goldberg
I have recently moved, see http://www.goldmark.org/jeff/contact.html
Relativism is the triumph of authority over truth, convention over justice
From line IS valid, but use reply-to.