Hello,

I've got a postfix system running mysql virtual mailbox domains and
dspam hooked in to it. I've got a test user called test1 and have
hooked in dspam in to my setup. I'm having an issue with the alias
addresses.

To my database I've added:

INSERT INTO `mail`.`virtual_aliases` (
  `id`,
  `domain_id`,
  `source`,
  `destination`
)
VALUES (
  '19', '1', 'spam-test1', 'test1'
);

and the same for notspam-test1 with an increased ID. In my
smtpd_recipient_restrictions after permit_mynetworks,
permit_sasl_authenicated, and reject_unauth_destination I've got these
two lines:

check_recipient_access pcre:/etc/postfix/dspam_check_aliases
check_sender_access pcre:/etc/postfix/dspam_check_aliases

so that only user's on mynetworks or authenticated via sasl can use
the spam and notspam addresses. An externally sent email to
notspam-te...@domain.com

went through. I'm assuming I have an error in my pcre table. Here it is:

/^.*(spam|notspam)@.*$/ REJECT

I thought the * was suppose to catch everything after it. Any
suggestions on the fix to this line I'd appreciate.

Thanks.
Dave.

Reply via email to