Re: Setting up postfix to use maildir for one account only
Ludwig Isaac Lim <ludz_lim-/[email protected]> Tue, 13 Sep 2016 09:17:07 +0000 (UTC)
| Newsgroups | gmane.org.user-groups.linux.philippine |
|---|---|
| Message-ID | <[email protected]> |
--===============1064091954427040545==
Content-Type: multipart/alternative;
boundary="----=_Part_1654475_1075394882.1473758227039"
------=_Part_1654475_1075394882.1473758227039
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi Fooler:
I managed to solve it after trying out your idea along with trial & error a=
nd googling,=C2=A0
The working solution turns out to be following :
I added the following to .forward:| "/usr/bin/procmail"
I created a file .procmailrc which contains:HOME=3D"/home/username"DEFAULT=
=3D"$HOME/Maildir/"MAILDIR=3D"$HOME/Maildir/"
I created the $HOME/Maildir folder along with its needed sub folders (new, =
tmp & cur)
Thank you so much for the guidance and putting me on the right track. It is=
a great solution as I don't to edit postfix configuration (though I have t=
o install procmail)
Very much appreciated.
Regards,Ludwig
=20
From: fooler mail <[email protected]>
To: Ludwig Isaac Lim <ludz_lim-/[email protected]>; Philippine Linux Users' Group (=
PLUG) Technical Discussion List <[email protected]>=20
Sent: Friday, September 9, 2016 7:00 PM
Subject: Re: [plug] Setting up postfix to use maildir for one account only
=20
Hi Ludwig,
Can you try to play with .forward (dot forward) file and procmail?
/home/username/.forward:
| "/usr/bin/procmail -a "$EXTENSION" DEFAULT=3D$HOME/Maildir/
MAILDIR=3D$HOME/Maildir"
http://www.postfix.org/local.8.html for more details
fooler.
On Thu, Sep 8, 2016 at 4:03 AM, Ludwig Isaac Lim <ludz_lim-/[email protected]> wrote=
:
> Hello:
>
> How can I configure postfix on a linux machine so that only one particula=
r
> account uses "maildir" style of mail box? I have 1 user account that rece=
ive
> multiple system emails and I want to use maildir format to avoid locking =
as
> I have a script that reads / deletes the emails. I don't want to convert
> every email account to maildir as the machine might already scripts that
> read mbox files for monitoring.
>
> Thanks in advance.
>
> Ludwig.
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
=20
=20
------=_Part_1654475_1075394882.1473758227039
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px"><div id=3D"yui_3_16_0_ym19_1_1473757313907_9661"=
><span>Hi Fooler:</span></div><div id=3D"yui_3_16_0_ym19_1_1473757313907_96=
60"><span><br></span></div><div id=3D"yui_3_16_0_ym19_1_1473757313907_9602"=
><span id=3D"yui_3_16_0_ym19_1_1473757313907_9637">I managed to solve it af=
ter trying out your idea along with trial & error and googling, </=
span></div><div id=3D"yui_3_16_0_ym19_1_1473757313907_9602"><span><br></spa=
n></div><div id=3D"yui_3_16_0_ym19_1_1473757313907_9602"><span>The working =
solution turns out to be following :</span></div><div class=3D"qtdSeparateB=
R" id=3D"yui_3_16_0_ym19_1_1473757313907_9593"><br></div><div class=3D"qtdS=
eparateBR" id=3D"yui_3_16_0_ym19_1_1473757313907_9593">I added the followin=
g to .forward:</div><div class=3D"qtdSeparateBR" id=3D"yui_3_16_0_ym19_1_14=
73757313907_9593"><div id=3D"yui_3_16_0_ym19_1_1473757313907_9678">| "/usr/=
bin/procmail"</div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9=
679"><br id=3D"yui_3_16_0_ym19_1_1473757313907_9680"></div><div dir=3D"ltr"=
id=3D"yui_3_16_0_ym19_1_1473757313907_9679"><br></div><div dir=3D"ltr" id=
=3D"yui_3_16_0_ym19_1_1473757313907_9679">I created a file .procmailrc whic=
h contains:</div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_967=
9"><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9747">HOME=3D"/ho=
me/username"</div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_97=
48">DEFAULT=3D"$HOME/Maildir/"</div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_=
1_1473757313907_9749">MAILDIR=3D"$HOME/Maildir/"</div><div dir=3D"ltr" id=
=3D"yui_3_16_0_ym19_1_1473757313907_9750"><br></div><div dir=3D"ltr" id=3D"=
yui_3_16_0_ym19_1_1473757313907_9750"><br></div><div dir=3D"ltr" id=3D"yui_=
3_16_0_ym19_1_1473757313907_9750">I created the $HOME/Maildir folder along =
with its needed sub folders (new, tmp & cur)</div><div dir=3D"ltr" id=
=3D"yui_3_16_0_ym19_1_1473757313907_9750"><br></div><div dir=3D"ltr" id=3D"=
yui_3_16_0_ym19_1_1473757313907_9750">Thank you so much for the guidance an=
d putting me on the right track. It is a great solution as I don't to edit =
postfix configuration (though I have to install procmail)</div><div dir=3D"=
ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9750"><br></div><div dir=3D"ltr"=
id=3D"yui_3_16_0_ym19_1_1473757313907_9750">Very much appreciated.</div><d=
iv dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9750"><br></div><div d=
ir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9750">Regards,</div><div d=
ir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9750">Ludwig</div><div dir=
=3D"ltr" id=3D"yui_3_16_0_ym19_1_1473757313907_9751"><br id=3D"yui_3_16_0_y=
m19_1_1473757313907_9752"></div></div><br></div><div class=3D"yahoo_quoted"=
id=3D"yui_3_16_0_ym19_1_1473757313907_9509" style=3D"display: block;"> <bl=
ockquote style=3D"border-left: 2px solid rgb(16, 16, 255); margin-left: 5px=
; margin-top: 5px; padding-left: 5px;" id=3D"yui_3_16_0_ym19_1_147375731390=
7_9508"> <div style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetic=
a, Arial, Lucida Grande, sans-serif; font-size: 16px;" id=3D"yui_3_16_0_ym1=
9_1_1473757313907_9507"> <div style=3D"font-family: HelveticaNeue, Helvetic=
a Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id=
=3D"yui_3_16_0_ym19_1_1473757313907_9506"> <div dir=3D"ltr" id=3D"yui_3_16_=
0_ym19_1_1473757313907_9505"> <font size=3D"2" face=3D"Arial" id=3D"yui_3_1=
6_0_ym19_1_1473757313907_9504"> <hr size=3D"1" id=3D"yui_3_16_0_ym19_1_1473=
757313907_9708"> <b><span style=3D"font-weight:bold;">From:</span></b> fool=
er mail <[email protected]><br> <b><span style=3D"font-weight: bo=
ld;">To:</span></b> Ludwig Isaac Lim <ludz_lim-/[email protected]>; Philippine=
Linux Users' Group (PLUG) Technical Discussion List <[email protected]=
rg.ph> <br> <b><span style=3D"font-weight: bold;">Sent:</span></b> Frida=
y, September 9, 2016 7:00 PM<br> <b id=3D"yui_3_16_0_ym19_1_1473757313907_9=
503"><span style=3D"font-weight: bold;" id=3D"yui_3_16_0_ym19_1_14737573139=
07_9502">Subject:</span></b> Re: [plug] Setting up postfix to use maildir f=
or one account only<br> </font> </div> <div class=3D"y_msg_container" id=3D=
"yui_3_16_0_ym19_1_1473757313907_9510"><br>Hi Ludwig,<br><br>Can you try to=
play with .forward (dot forward) file and procmail?<br><br>/home/username/=
.forward:<br>| "/usr/bin/procmail -a "$EXTENSION" DEFAULT=3D$HOME/Maildir/<=
br>MAILDIR=3D$HOME/Maildir"<br><br><a href=3D"http://www.postfix.org/local.=
8.html" target=3D"_blank" id=3D"yui_3_16_0_ym19_1_1473757313907_9511">http:=
//www.postfix.org/local.8.html </a> for more details<br><br>fooler.<br><br>=
On Thu, Sep 8, 2016 at 4:03 AM, Ludwig Isaac Lim <<a ymailto=3D"mailto:l=
udz_lim-/[email protected]" href=3D"mailto:ludz_lim-/[email protected]">ludz_lim-/[email protected]</a=
>> wrote:<br>> Hello:<br>><br>> How can I configure postfix on =
a linux machine so that only one particular<br>> account uses "maildir" =
style of mail box? I have 1 user account that receive<br>> multiple syst=
em emails and I want to use maildir format to avoid locking as<br>> I ha=
ve a script that reads / deletes the emails. I don't want to convert<br>>=
; every email account to maildir as the machine might already scripts that<=
br>> read mbox files for monitoring.<br>><br>> Thanks in advance.<=
br>><br>> Ludwig.<br>><br>> ___________________________________=
______________<br>> Philippine Linux Users' Group (PLUG) Mailing List<br=
>> <a href=3D"http://lists.linux.org.ph/mailman/listinfo/plug" target=3D=
"_blank">http://lists.linux.org.ph/mailman/listinfo/plug</a><br>> Search=
able Archives: <a href=3D"http://archives.free.net.ph/" target=3D"_blank">h=
ttp://archives.free.net.ph</a><br><br><br></div> </div> </div> </blockquote=
> </div></div></body></html>
------=_Part_1654475_1075394882.1473758227039--
--===============1064091954427040545==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph
--===============1064091954427040545==--