Re: exim doesn't deliver to maildirs
On Mon, Jun 24, 2002 at 03:45:51PM -0700, Paul Mackinney wrote: | Christian Schoenebeck declaimed: | > Es geschah am Montag, 24. Juni 2002 22:26 als Paul Mackinney schrieb: | > So, no matter of your .forward file, does Maildir at least work or are all | > messages saved in mbox? | | Maildir works. After changing local_delivery to | |directory = ${home}/Maildir/ | | mail does get delivered to the root of my Maildir folder when the | .forward file is removed. Yes, that's one way to do it. (assuming you want all local deliveries to be maildir from now on) | > > Because the filter passes the tests described in the documentation, my | > > working assumption is that something's wrong with the TRANSPORTS | > > CONFIGURATION section of exim.conf. Does the userforward director define "directory_transport = address_directory"? | This leads me to think that there's a doc about Maildir & exim | that I haven't found. So far I've been working from the comments in | exim.conf and the material in /usr/doc/exim/ spec.txt. (or the O'Reilly book (which is written by exim's author), but I don't have it) HTH, -D -- Whoever loves discipline loves knowledge, but he who hates correction is stupid. Proverbs 12:1 http://dman.ddts.net/~dman/ pgpsMESZXFsxg.pgp Description: PGP signature
Re: exim doesn't deliver to maildirs
On Mon, Jun 24, 2002 at 04:51:09PM -0400, Matthew Daubenspeck wrote: | | > > | Well this doesn't hurt at any rate, the old system of having the primary | > > | deliver go to | > > | | > > | file = /var/spool/mail/${localpart} | > > | > > | > > Do note that you must use the "directory =" option, not the "file =" | > > option in conjunction with "maildir_format". | > > | > Yes, I'm now using | > | >directory = ${home}/Maildir/ | > | | I always use: | | directory = /home/$local_part/Maildir That only works when users' home directories are /home/$local_part. On some (eg large) systems they are split up into different subdirectories. Using $home works regardless of where the homedir is. -D -- The crucible for silver and the furnace for gold, but the Lord tests the heart. Proverbs 17:3 http://dman.ddts.net/~dman/ pgpbOhbHAzJ7u.pgp Description: PGP signature
Re: exim doesn't deliver to maildirs
Christian Schoenebeck declaimed: > Es geschah am Montag, 24. Juni 2002 22:26 als Paul Mackinney schrieb: > So, no matter of your .forward file, does Maildir at least work or are all > messages saved in mbox? > Maildir works. After changing local_delivery to directory = ${home}/Maildir/ mail does get delivered to the root of my Maildir folder when the .forward file is removed. I suppose I could work around this by skipping the exim .forward stuff and just invoking procmail from .forward, but I was kind of waiting to get into procmail until I'd converted to maildirs. Currently I'm not using procmail. > > Because the filter passes the tests described in the documentation, my > > working assumption is that something's wrong with the TRANSPORTS > > CONFIGURATION section of exim.conf. > > No, I don't think so, but anyway, here's my complete exim.conf, but it's as > far as I can remember the default config file except the adjustment of the > local section: Thanks very much. One thing I note is that the two people who provided me with examples of a local_delivery: routine gave me almost identical examples. This leads me to think that there's a doc about Maildir & exim that I haven't found. So far I've been working from the comments in exim.conf and the material in /usr/doc/exim/ My next plan is to closely compare my exim.conf file to yours. Thanks very much for sending it. Paul -- Paul Mackinney [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: exim doesn't deliver to maildirs
Es geschah am Montag, 24. Juni 2002 22:51 als Matthew Daubenspeck schrieb: > > Yes, I'm now using > > > >directory = ${home}/Maildir/ > > I always use: > > directory = /home/$local_part/Maildir That shouldn't be the problem. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: exim doesn't deliver to maildirs
> > | Well this doesn't hurt at any rate, the old system of having the primary > > | deliver go to > > | > > | file = /var/spool/mail/${localpart} > > > > > > Do note that you must use the "directory =" option, not the "file =" > > option in conjunction with "maildir_format". > > > Yes, I'm now using > >directory = ${home}/Maildir/ > I always use: directory = /home/$local_part/Maildir -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: exim doesn't deliver to maildirs
Derrick 'dman' Hudson declaimed: > On Sun, Jun 23, 2002 at 07:29:16PM -0700, Paul Mackinney wrote: > | Christian Schoenebeck declaimed: > | > > I've been trying to switch from mbox to maildir, but exim won't deliver > | > > to my maildirs. Here's the relevant section of my exim.conf: > | > > | > I replaced the local_delivery section by: > | > > | > local_delivery: > | > driver = appendfile > | > create_directory = true > | > directory_mode = 700 > | > directory = ${home}/Maildir > ^ > | > group = mail > | > mode = 0660 > | > envelope_to_add = true > | > return_path_add = true > | > maildir_format > | > > | > That works for me. I also found a nice perl script which converts old > mbox -> > | > Maildir. Let me know if you need it. > | Well this doesn't hurt at any rate, the old system of having the primary > | deliver go to > | > | file = /var/spool/mail/${localpart} > > > Do note that you must use the "directory =" option, not the "file =" > option in conjunction with "maildir_format". > Yes, I'm now using directory = ${home}/Maildir/ > | was also working. The mbox or Maildir specified in the local_delivery > | transport of exim.conf gets the mail. The problem is that my .forward > | file won't file mail to Maildirs, just mboxes. A stripped down example > | is: > | > |# Exim filter > |if error_message then > | finish > |endif > | > |if $h_Subject contains "mailtest" then > |seen save $home/Maildir/test/ > ^ > |else > |save $home/Maildir/inbox > ^ > |endif > |finish > |# end .forward > | > | According to the comments in exim.conf:TRANSPORTS CONFIGURATION, it's > | the address_directory transport that handles addresses generated by > | .forward files. Could you send me that section? > > It handles addresses that have a trailling slash. If it doesn't have > a trailling slash, the "address_file" transport handles it. > > (see the the arrows I inserted above) > > -D Yes, I understand this. My situation is that 'inbox' is an mbox file. 'test/' is a maildir directory. Using the above .forward file, mail is delivered to 'inbox' and all other mboxes. Mail is not delivered to 'test/' or any other maildir. Because the filter passes the tests described in the documentation, my working assumption is that something's wrong with the TRANSPORTS CONFIGURATION section of exim.conf. Here it is with comments stripped for brevity. Comments, or a copy of anyone's working exim.conf very much appreciated. local_delivery: driver = appendfile create_directory = true directory_mode = 700 directory = ${home}/Maildir/ group = mail mode = 0660 envelope_to_add = true return_path_add = true maildir_format address_pipe: driver = pipe path = /usr/bin:/bin:/usr/local/bin return_output address_file: driver = appendfile envelope_to_add = true return_path_add = true address_directory: driver = appendfile no_from_hack prefix = "" suffix = "" maildir_format address_reply: driver = autoreply procmail_pipe: driver = pipe command = "/usr/bin/procmail" return_path_add delivery_date_add envelope_to_add suffix = "" remote_smtp: driver = smtp end TIA, PM -- Paul Mackinney [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: exim doesn't deliver to maildirs
On Sun, Jun 23, 2002 at 07:29:16PM -0700, Paul Mackinney wrote: | Christian Schoenebeck declaimed: | > > I've been trying to switch from mbox to maildir, but exim won't deliver | > > to my maildirs. Here's the relevant section of my exim.conf: | > | > I replaced the local_delivery section by: | > | > local_delivery: | > driver = appendfile | > create_directory = true | > directory_mode = 700 | > directory = ${home}/Maildir ^ | > group = mail | > mode = 0660 | > envelope_to_add = true | > return_path_add = true | > maildir_format | > | > That works for me. I also found a nice perl script which converts old mbox -> | > Maildir. Let me know if you need it. | Well this doesn't hurt at any rate, the old system of having the primary | deliver go to | | file = /var/spool/mail/${localpart} Do note that you must use the "directory =" option, not the "file =" option in conjunction with "maildir_format". | was also working. The mbox or Maildir specified in the local_delivery | transport of exim.conf gets the mail. The problem is that my .forward | file won't file mail to Maildirs, just mboxes. A stripped down example | is: | |# Exim filter |if error_message then | finish |endif | |if $h_Subject contains "mailtest" then |seen save $home/Maildir/test/ ^ |else |save $home/Maildir/inbox ^ |endif |finish |# end .forward | | According to the comments in exim.conf:TRANSPORTS CONFIGURATION, it's | the address_directory transport that handles addresses generated by | .forward files. Could you send me that section? It handles addresses that have a trailling slash. If it doesn't have a trailling slash, the "address_file" transport handles it. (see the the arrows I inserted above) -D -- "...In the UNIX world, people tend to interpret `non-technical user' as meaning someone who's only ever written one device driver." --Daniel Pead http://dman.ddts.net/~dman/ pgpvTSqlYcgy2.pgp Description: PGP signature
Re: exim doesn't deliver to maildirs
Christian Schoenebeck declaimed: > > I've been trying to switch from mbox to maildir, but exim won't deliver > > to my maildirs. Here's the relevant section of my exim.conf: > > I replaced the local_delivery section by: > > local_delivery: > driver = appendfile > create_directory = true > directory_mode = 700 > directory = ${home}/Maildir > group = mail > mode = 0660 > envelope_to_add = true > return_path_add = true > maildir_format > > That works for me. I also found a nice perl script which converts old mbox -> > Maildir. Let me know if you need it. Well this doesn't hurt at any rate, the old system of having the primary deliver go to file = /var/spool/mail/${localpart} was also working. The mbox or Maildir specified in the local_delivery transport of exim.conf gets the mail. The problem is that my .forward file won't file mail to Maildirs, just mboxes. A stripped down example is: # Exim filter if error_message then finish endif if $h_Subject contains "mailtest" then seen save $home/Maildir/test/ else save $home/Maildir/inbox endif finish # end .forward According to the comments in exim.conf:TRANSPORTS CONFIGURATION, it's the address_directory transport that handles addresses generated by .forward files. Could you send me that section? TIA, Paul -- Paul Mackinney [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]