REJECT with Before-Queue Content Filter?

2012-08-27 Thread Juerg Reimann
Hello everybody, Please excuse my probably rather novice question but I couldn't find any hint on this. The document at http://www.postfix.org/SMTPD_PROXY_README.html says it should be possible to reject an email with a before-queue content filter ... but how would I exactly accomplish this? W

RE: REJECT with Before-Queue Content Filter?

2012-09-07 Thread Juerg Reimann
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Noel Jones > This is what postfix refers to as a "simple content filter", and cannot be > used as a before-queue filter. > http://www.postfix.org/FILTER_README.html#simple_filter > > To use spamassassin in

RE: REJECT with Before-Queue Content Filter?

2012-09-07 Thread Juerg Reimann
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Robert Schetterer > >> Thank you Noel and all others who helped me on this. I have now implemented >> spamass- >> milter. Now I only want incomung mail to go through the milter, outgoing >> mail shoul

RE: REJECT with Before-Queue Content Filter?

2012-09-07 Thread Juerg Reimann
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Robert Schetterer > > Am 07.09.2012 15:48, schrieb Juerg Reimann: > >> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > >> us...@postfix.org]

Clear body_checks for a moment?

2012-12-22 Thread Juerg Reimann
Hi everybody, I need to clear my body_checks in order tu run a script and afterwards reaload them again. What I currently do is: cp /etc/mail/body_checks /etc/mail/body_checks.tmp > /etc/mail/body_checks /usr/sbin/postfix reload sleep 60 /path/to/my/script mv /etc/mail/body_checks.tmp /etc/mail/

HTML in bounce messages?

2013-01-30 Thread Juerg Reimann
Is it possible to customize the bounce messages and include an encapsulated html message for MIME-compliant clients? If yes, is there some reason why one should not do that? I'd like to make postfix bounce messages easier readable for the average user... Thanks, Juerg

Block before Recipient address rejected: User unknown?

2013-07-11 Thread Juerg Reimann
Hi everybody, Is there a way to reject a certain sender email address before he gets a 550 5.1.1 : Recipient address rejected: User unknown? When I add the sender to header_check, he still gets first the User unknown reject when he sends to an unknown user... Thanks, Juerg

How do I link Postfix to OpenSSL?

2013-11-17 Thread Juerg Reimann
Hi everybody, At http://www.postfix.org/postconf.5.html#smtp_tls_mandatory_protocols is mentioned "As of OpenSSL 1.0.1 two new protocols are defined, "TLSv1.1" and "TLSv1.2". If an older Postfix version is linked against OpenSSL 1.0.1 or later, these, or any other new protocol versions, are unc

virtual_alias_maps no longer working

2013-11-22 Thread Juerg Reimann
Hello everybody I had a perfectly working Postfix configuration, but after a server restart something went weird. Postfix claims several users are unknown. It turns out that these are aliases from my virtual_alias_maps file. I have the following in main.cf: virtual_alias_maps = dbm:/etc/postfi

!/^From:.*<.*@.*>/ in header_checks

2014-01-18 Thread Juerg Reimann
I'm trying to reject mail without a valid From:-address in the mail header (other than reject_non_fqdn_sender which only affects the mail envelope). However, the following rule in header_checks seems to match valid From:-addresses instead of the opposite: !/^From:.*<.*@.*>/ REJECT No valid

RE: !/^From:.*<.*@.*>/ in header_checks

2014-01-18 Thread Juerg Reimann
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Wietse Venema > > Juerg Reimann: > > !/^From:.*<.*@.*>/ REJECT No valid sender email address in mail header > > As documented that will match ALL message headers except

mail relay and local users

2014-08-20 Thread Juerg Reimann
Hi there I have a running Postfix configuration with several domains and local users (virtual_mailbox_maps). Is it possible to also use that system as a mail relay (inward and outward) in front of an MS Exchange system? Does anybody know some how tos for that? Thanks a lot! Juerg

RE: mail relay and local users

2014-08-20 Thread Juerg Reimann
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Wietse Venema > > Juerg Reimann: > > Hi there > > > > I have a running Postfix configuration with several domains and > > local users (virtual_mailbox_maps). Is it

lower case email address for delivery

2020-11-28 Thread Juerg Reimann
Dear list members, Interesting phenomenon on a newly setup system: 2020-11-28T11:15:48+01:00 localhost postfix/lmtp[98782]: [ID 197553 mail.info] DDB5E8456: to=, relay=my.host.tld[private/dovecot-lmtp], delay=0.04, delays=0.02/0/0.01/0.01, dsn=5.1.1, status=bounced (host my.host.tld[private/do

too many errors after RCPT

2021-05-18 Thread Juerg Reimann
Hi there I have a customer with a newsletter that has apparently a large number of invalid email addresses. When he tries to send mail through my server, postfix cuts the smtp session after a while with "too many errors after RCPT". How can I allow him to send his newsletter, even though many f

RE: too many errors after RCPT

2021-05-18 Thread Juerg Reimann
> > Hi there > > > > I have a customer with a newsletter that has apparently a large > > number of invalid email addresses. When he tries to send mail > > through my server, postfix cuts the smtp session after a while > > with "too many errors after RCPT". > > And I suppose that this SMTP does not

RE: too many errors after RCPT

2021-05-18 Thread Juerg Reimann
> Dnia 18.05.2021 o godz. 19:46:30 Juerg Reimann pisze: > > > > I have a customer with a newsletter that has apparently a large number of > > invalid email addresses. When he tries to send mail through my server, > > postfix cuts the smtp session after a while with &quo

catch-all but only for non-existent addresses

2015-12-15 Thread Juerg Reimann
I need a catch-all configuration for a domain, but only for otherwise non-existent addresses. How could I do that? If I configure catch-all as described in VIRTUAL_README, every mail to that domain is forwarded, even those for real users... Thanks, Juerg

Having Postfix relay and deliver locally for one domain?

2016-04-07 Thread Juerg Reimann
Sorry if this has been asked a 1000 times (but I couldn't find a hint). I need to relay the majority of users of one domain to another postfix host, except two users. How would I accomplish this? Like: us...@example.com and us...@example.com local, all other users relay to another host. Thanks! J

[pfx] virtual_mailbox_map not needed anymore?

2023-07-05 Thread Juerg Reimann via Postfix-users
Hello group I'm a bit puzzled here. I usually create new users first for Dovecot, then add to the configuration of Postfix the path to the relative maildir in virtual_mailbox_maps (the domain and other users for that virtual domain already exist). Now I forgot the last part for a couple of user

[pfx] Re: Glitches in smtpd_restriction_classes?

2023-12-10 Thread Juerg Reimann via Postfix-users
> From: Wietse Venema via Postfix-users > Sent: Sunday, December 10, 2023 1:52 PM > > Juerg Reimann via Postfix-users: > > I have to following configuration: > > > > -- -- > > > > /etc/postfix/main.cf: > > smtpd_recipient_restrictions = &g

[pfx] Re: Glitches in smtpd_restriction_classes?

2023-12-10 Thread Juerg Reimann via Postfix-users
> From: Noel Jones via Postfix-users > Sent: Sunday, December 10, 2023 2:53 PM > > > But every now and then it does not: > > > > 2023-12-09T14:03:23+01:00 localhost dovecot: [ID 702911 mail.info] > > lmtp(m...@email.addr)<15599>: sieve: > > msgid= > .outlook.com> > > from= size=18499 vsize=18977

[pfx] filter header from on forwarded mail

2024-03-05 Thread Juerg Reimann via Postfix-users
Hi everyone, I have rspamd in front of postfix and in certain situations I have to completely whitelist some sending servers on the rspamd level. These are cases where users have to forward mail from other systems and these nor have DMARC nor for that matter ARC implemented. So all forwarded ma

[pfx] Re: filter header from on forwarded mail

2024-03-05 Thread Juerg Reimann via Postfix-users
> From: Juerg Reimann via Postfix-users > > So, but now I still have to filter such incoming mail in a way that I'd be > able to block certain senders by their *header* From: on a user basis. I Sorry, when I say user basis I mean domain basis of course... Juerg smime.p7s De

[pfx] Re: filter header from on forwarded mail

2024-03-06 Thread Juerg Reimann via Postfix-users
> From: Ralph Seichter via Postfix-users > > I heartily recommend milter-regex [1]. It serves me well by allowing me > to configure all kinds of complex antispam rules. > > [1] https://www.benzedrine.ch/milter-regex.html > > -Ralph Thanks Ralph, that looks interesting and it's even Swiss made :).