Re: Problem with aliases
"Jevos, Peter" <[email protected]>
| Newsgroups | gmane.mail.majordomo.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your answer Dan 1.I removed the space on the test alias. Address [email protected] is just fake for this email. 2.The problem is that I'm not write a email to [email protected], but the spammers send email to address [email protected]. I'm writing an emails to address [email protected]. 3. I'm just afraid why owner-test did apperar in the logs I don't know how to prevent delivery of mail to test-list, except from the local alias expansion of test. Cause: I use postfix with virtual users stored in mysql. Only majordomo aliases are stored in local alias table. I cannot use virtusertable.I forgot to describe one problem. I have domain @test.com. I set in my virtual alias ( according to http://www.postfix.org/VIRTUAL_README.html ) in my virtual table( or file, it doesn't matter ) [email protected] test , and in my alias is test "| /usr/local/majordomo/wrapper resend -l test test-list" test-list :include:/usr/local/majordomo/lists/test But spammers sent an email directly to [email protected] and it means, postfix looked directly to alias table ( not virtual table ) I tried to use in my virtual table this; [email protected] error:nouser User unknown, and it works for the message to [email protected], but it doesn't work for correct mailing list [email protected], cause when [email protected] pass message to test-list ( postfix looks again to the virtual table ) and send message not to :include:/usr/local/majordomo/lists/test but to error:nouser User unknown Thanks for an advices -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Liston Sent: Thursday, April 27, 2006 7:18 PM To: Jevos, Peter Cc: [email protected] Subject: Re: Problem with aliases #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