[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ezmlm
Subject:    Re: migrate from group alias to mailing list
From:       Kyle Wheeler <kyle-ezmlm () memoryhole ! net>
Date:       2009-06-18 22:31:17
Message-ID: 20090618223117.GG6081 () atakapa ! local
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thursday, June 18 at 04:36 PM, quoth Asif Iqbal:
>(alias)@qmail:~$ rm -rf /maildisk/example.net/newtest
>(alias)@qmail:~$ ezmlm-make -gsrl -5 owner@example.net /maildisk/
>example.net/newtest ~/.qmail-newtest2 newtest example.net
>(alias)@qmail:~$ ls -al .qmail-newtest2*
>lrwxrwxrwx   1 alias    qmail         36 Jun 18 20:23 .qmail-newtest2 ->
>/maildisk/example.net/newtest/editor
>lrwxrwxrwx   1 alias    qmail         37 Jun 18 20:23
>.qmail-newtest2-default -> /maildisk/example.net/newtest/manager
>lrwxrwxrwx   1 alias    qmail         35 Jun 18 20:23 .qmail-newtest2-owner
>-> /maildisk/example.net/newtest/owner
>lrwxrwxrwx   1 alias    qmail         37 Jun 18 20:23
>.qmail-newtest2-return-default -> /maildisk/example.net/newtest/bouncer
>
>So now I have to rename them to .qmail-newtest-*

Sounds like a good plan.

>(alias)@qmail:~$ mv .qmail-newtest2-default .qmail-newtest-default
>(alias)@qmail:~$ mv .qmail-newtest2-owner .qmail-newtest-owner
>(alias)@qmail:~$ mv .qmail-newtest2-return-default
>.qmail-newtest-return-default
>(alias)@qmail:~$ rm .qmail-newtest2

Why'd you delete that last one? I think the right thing to do is:

     $ mv .qmail-newtest2 .qmail-newtest

(which IS atomic)

>I am guessing the last step is not atomic. Is it? Also is this how 
>you were referring to do as the second option?

Yes, the rename process isn't atomic, but consider what you're doing: 
you're converting a multiple-redirect file into a mailing list. Who 
cares whether the surrounding email addresses (e.g. newtest-owner) are  
established atomically? All that really matters is that if any message 
is sent to newtest@yourserver, it goes either to the old list of 
addresses or to the new mailing list and that there's no chance of 
qmail getting confused and perhaps sending it to only a few of the old 
addresses.

Of course, another way to do it would be to use the qmail-users 
mechanism. Thus, you could create your ezmlm list elsewhere, put the 
.qmail files just about anywhere, and then use a qmail-users alias to 
specify where the list's .qmail files are (i.e. NOT in the ~alias 
folder), and update the qmail-users database atomically (with 
`qmail-newu`).

~Kyle
- -- 
Power always thinks it has a great soul and vast views beyond the 
comprehension of the weak; and that it is doing God's service when it 
is violating all his laws.
                                                          -- John Adams
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKOsA1AAoJECuveozR/AWeUV4QALeG57/oLslJkR1NCJROX1VL
WTtd3SRedK70M2+X1WTPjlx2mhETLeQgbSNP3S+oDiN01U3HCayEec4B0oNZXjVL
rfI62EvqBnxQcm/mfA2cHH7XeWrFe+mLcK26zhwyuGtKFUao3MBiq/Kjvw+wsWIR
sIEbq3R26tVQtI8o+5gn7Hss1DaUZxeGBFXMM6rmpxHKxAWNPmYbt8t5Ksl+Avcc
HlM1j34RCjP2Av1Ty50sHyWvFkPtSmCrLKF32A+pWJP8pWINK8Btw6fnYqqTQS27
cjaWixQQ9TauIetwdkuPaXNqOmQLC/hRvGZdrLe44HKfO9/foJYu0IH1N6YYKoVV
tQ7UtGeYEA4UIZSTYmAeXroSfeZ7Rz2gftBqL3gLMSyu8MeicjWwF2WdxPGgRqpJ
CQsHUB9aPgUSSuUMVZa3GuJAscJ2c1IFfcE1ZB2ogfZb6kJScHImMS55gWp7Pj3P
uDNo56TpevCy+OQ8tTzbacjm17XXgQnDhyEG5yTsHtncAitNbdRU0ax5wJeR1agz
oApJ+W5y3MY0+RYIHC4SXv9OS/MFBww7dVDAYu0Lb+9PNY/EUJJut0mKNtMlVRWu
qSTyWTAXfh+5wuFgXMTXrbTdx/xbI7mX5BVxfRyS0cswy1cKaoMZh6E3L3iAgw+3
r0U0kqEIFVKFS22ZxkLt
=SsK+
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic