Re: Problem with aliases

Daniel Liston <[email protected]>
Newsgroups gmane.mail.majordomo.general
Message-ID <[email protected]>
#1.  You have a space (shouldn't matter) after "| on the test alias.
	I assume [email protected] is fake for the purpose of this email,
	if not, you better own/control delivery to [email protected].
#2.  If you write to [email protected], you are bypassing majordomo.
	The correct address for your list is [email protected]
#3.  Your log shows owner-test sending mail to test-list locally. uid-1003
	The message was never "To:" owner-test as you imply in your final
	question.

Something is really hosed, as I do not see from the information provided
how test-list can get translated to test, unless your test.config file or
the test file itself reference the test@ address.  Mail should be composed
"To:" [email protected], which gets processed through majordomo, then resent
to the alias [email protected] when all the rules pass inspection.  The
test-list alias in turn evaluates to the contents of file 
/usr/local/majordomo/lists/test and uses postfix/sendmail to deliver to all
those addresses.

You need to prevent delivery of mail to test-list, except from the local
alias expansion of test.  Anyone writing to test-list will bypass majordomo
and the rules/policies in test.config, and have full access to your list of
users in the "test" file.


Dan Liston

Jevos, Peter wrote:
> Hello 
> I'd like to ask you if my aliases are correct cause I have one problem:
> 
> owner-test      [email protected]                                   
> test             "| /usr/local/majordomo/wrapper resend -l test test-list"    
> test-request    "|/usr/local/majordomo/wrapper request-answer test"    
> test-approval    [email protected]                                   
> test-list        :include:/usr/local/majordomo/lists/test       
> 
> In my test.config is : restrict_post=access, where access file contains
> users can send to address [email protected]. But when I send email to
> address [email protected], restrict post parameter doesn't work.
> 
> And the next one. I looked at the logs and it seems strange:
> 
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 2D3A914104:
> from=<[email protected]>, size=837, nrcpt=1 (queue active)
> Apr 27 18:18:42 mail postfix/smtpd[16738]: disconnect from
> mxm.seznam.cz[194.228.32.45]
> Apr 27 18:18:42 mail postfix/pickup[16647]: 5323C14110: uid=1003
> from=<[email protected]>
> Apr 27 18:18:42 mail postfix/cleanup[16745]: 5323C14110:
> message-id=<[email protected]>
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 5323C14110:
> from=<[email protected]>, size=1694, nrcpt=1 (queue active)
> Apr 27 18:18:42 mail postfix/cleanup[16745]: 58A6414111:
> message-id=<[email protected]>
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 58A6414111:
> from=<[email protected]>, size=1835, nrcpt=1 (queue active)
> Apr 27 18:18:42 mail postfix/local[16755]: 5323C14110:
> to=<[email protected]>, orig_to=<test-list>, relay=local, delay=0,
> st
> atus=sent (forwarded as 58A6414111)
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 5323C14110: removed
> Apr 27 18:18:42 mail postfix/local[16750]: 2D3A914104:
> to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0,
>  status=sent (delivered to command:  /usr/local/majordomo/wrapper resend
> -l test test-list)
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 2D3A914104: removed
> Apr 27 18:18:43 mail postfix/smtp[16680]: 58A6414111:
> to=<[email protected]>, orig_to=<test-list>,
> relay=mx1.seznam.cz[194.228.32.4
> 4], delay=1, status=sent (250 ok 1146154721 qp 5090) 
> 
> Why frst is eveluated [email protected] and then he send mail to
> [email protected] ?
> Is it correct ?
> 
> Thanks 
> 
> pet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.