Thanks for your answer Dan
1.I removed the space on the test alias. Address email@example.com is just fake
for this email.
2.The problem is that I'm not write a email to firstname.lastname@example.org,
but the spammers send email to address email@example.com. I'm
writing an emails to address firstname.lastname@example.org.
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.
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@example.com test , and in my alias is
test "| /usr/local/majordomo/wrapper resend -l test
But spammers sent an email directly to firstname.lastname@example.org and it
means, postfix looked directly to alias table ( not virtual table ) I
tried to use in my virtual table this;
email@example.com error:nouser User unknown, and it works for
the message to firstname.lastname@example.org, but it doesn't work for correct
mailing list email@example.com, cause when
firstname.lastname@example.org 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
Thanks for an advices
[mailto:email@example.com] On Behalf Of Daniel
Sent: Thursday, April 27, 2006 7:18 PM
To: Jevos, Peter
Subject: Re: Problem with aliases
#1. You have a space (shouldn't matter) after "| on the test alias.
I assume firstname.lastname@example.org is fake for the purpose of this email,
if not, you better own/control delivery to email@example.com.
#2. If you write to firstname.lastname@example.org, you are bypassing majordomo.
The correct address for your list is email@example.com #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
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:" firstname.lastname@example.org, which gets processed through majordomo,
then resent to the alias email@example.com 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.
Jevos, Peter wrote:
> I'd like to ask you if my aliases are correct cause I have one
> owner-test firstname.lastname@example.org
> test "| /usr/local/majordomo/wrapper resend -l test
> test-request "|/usr/local/majordomo/wrapper request-answer test"
> test-approval email@example.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 firstname.lastname@example.org. But when I send
> email to address email@example.com, restrict post parameter doesn't
> And the next one. I looked at the logs and it seems strange:
> Apr 27 18:18:42 mail postfix/qmgr: 2D3A914104:
> from=<firstname.lastname@example.org>, size=837, nrcpt=1 (queue active) Apr 27
> 18:18:42 mail postfix/smtpd: disconnect from
> mxm.seznam.cz[188.8.131.52] Apr 27 18:18:42 mail
> postfix/pickup: 5323C14110: uid=1003 from=<email@example.com>
> Apr 27 18:18:42 mail postfix/cleanup: 5323C14110:
> Apr 27 18:18:42 mail postfix/qmgr: 5323C14110:
> from=<firstname.lastname@example.org>, size=1694, nrcpt=1 (queue active) Apr 27
> 18:18:42 mail postfix/cleanup: 58A6414111:
> Apr 27 18:18:42 mail postfix/qmgr: 58A6414111:
> from=<email@example.com>, size=1835, nrcpt=1 (queue active) Apr 27
> 18:18:42 mail postfix/local: 5323C14110:
> to=<firstname.lastname@example.org>, orig_to=<test-list>, relay=local,
> delay=0, st atus=sent (forwarded as 58A6414111) Apr 27 18:18:42 mail
> postfix/qmgr: 5323C14110: removed Apr 27 18:18:42 mail
> postfix/local: 2D3A914104:
> to=<email@example.com>, orig_to=<firstname.lastname@example.org>, 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: 2D3A914104: removed Apr 27 18:18:43 mail
> postfix/smtp: 58A6414111:
> to=<email@example.com>, orig_to=<test-list>,
> 4], delay=1, status=sent (250 ok 1146154721 qp 5090)
> Why frst is eveluated firstname.lastname@example.org and then he send mail to
> email@example.com ?
> Is it correct ?