Thanks for your answer Dan
1.I removed the space on the test alias. Address a@a.com is just fake
for this email.
2.The problem is that I'm not write a email to test-list@your.domain,
but the spammers send email to address test-list@host.your.domain. I'm
writing an emails to address test@your.domain.
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 )
test@test.com 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 test-list@mail.test.com and it
means, postfix looked directly to alias table ( not virtual table ) I
tried to use in my virtual table this;
test-list@mail.test.com error:nouser User unknown, and it works for
the message to test-list@mail.test.com, but it doesn't work for correct
mailing list test@test.com, cause when
test@mail.test.com 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: majordomo-users-owner@greatcircle.com
[mailto:majordomo-users-owner@greatcircle.com] On Behalf Of Daniel
Liston
Sent: Thursday, April 27, 2006 7:18 PM
To: Jevos, Peter
Cc: majordomo-users@greatcircle.com
Subject: Re: Problem with aliases
#1. You have a space (shouldn't matter) after "| on the test alias.
I assume a@a.com is fake for the purpose of this email,
if not, you better own/control delivery to a@a.com.
#2. If you write to test-list@your.domain, you are bypassing majordomo.
The correct address for your list is test@your.domain #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:" test@your.domain, which gets processed through majordomo,
then resent to the alias test-list@your.domain 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 a@a.com
> test "| /usr/local/majordomo/wrapper resend -l test
test-list"
> test-request "|/usr/local/majordomo/wrapper request-answer test"
> test-approval a@a.com
> 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 test@test.com. But when I send
> email to address test-list@test.com, 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=<it.sysms@seznam.cz>, 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=<owner-test@test.com>
> Apr 27 18:18:42 mail postfix/cleanup[16745]: 5323C14110:
> message-id=<4.6431-29079-1994865015-1146154718@seznam.cz>
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 5323C14110:
> from=<owner-test@test.com>, size=1694, nrcpt=1 (queue active) Apr 27
> 18:18:42 mail postfix/cleanup[16745]: 58A6414111:
> message-id=<4.6431-29079-1994865015-1146154718@seznam.cz>
> Apr 27 18:18:42 mail postfix/qmgr[16648]: 58A6414111:
> from=<owner-test@test.com>, size=1835, nrcpt=1 (queue active) Apr 27
> 18:18:42 mail postfix/local[16755]: 5323C14110:
> to=<test-list@mail.test.com>, 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=<test@mail.test.com>, orig_to=<test@test.com>, 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=<new@seznam.cz>, 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 owner-test@test.com and then he send mail to
> test@test.com ?
> Is it correct ?
>
> Thanks
>
> pet
|
|