Using a date in a bcc map

2017-09-07 Thread
[This message bounced because the words "c h a n g e" and "a d d r e s s" were on the same line.] I currently have recipient_bcc.pcre: if !/backup.*@/ /^([^+_]*).*@(.*)/ backup+${1}.${2}@localdomain.tld endif I would like to change this to add a date field to the backup address. (I am

Re: Chinese Spam

2017-09-07 Thread pgndev
​Fwiw I keep a pre-queue instance of milter-regex https://www.benzedrine.ch/milter-regex.html in place, for just such 'emergencies', as well as longer-term header match/action. Although it's a bit long in the tooth, and not actively supported, it still works well enough. It's a clean, easy

Re: Chinese Spam

2017-09-07 Thread Doug Hardie
Thanks. I went with: IF /^Message-id:/ /@qq\.com/ Reject ENDIF It's not all that pretty, but it works fine. I have been watching the logs and those messages are now being rejected. Thanks for all the help. -- Doug > On 7 September 2017, at 15:50, pgndev wrote: >

Re: can't get server to start postfix

2017-09-07 Thread Wietse Venema
Viktor Dukhovni: > > [root@mail2 ~]# bash -c "ls -ld /var{,/lib{,/postfix{,/master.lock}}}" > > drwxr-xr-x. 20 rootroot4096 Mar 2 2017 /var > > drwxr-xr-x. 29 rootroot4096 Sep 7 03:46 /var/lib > > drwxr--r--. 2 postfix postfix 4096 Sep 7 16:07 /var/lib/postfix > > -rw-r--r--.

Re: Chinese Spam

2017-09-07 Thread pgndev
​I missed the "message id" ... You should be able to match/block any valid header name. Add it to, or replace, what's in the match -- up to you. Personally, I've never received a valid email from 'anything' @qq.com. YMMV. If you're shutting down a flood, more extreme, blunt instrument

Re: Chinese Spam

2017-09-07 Thread Doug Hardie
> On 7 September 2017, at 15:28, pgndev wrote: > > It ain't pretty, or recommended for the long term, but something like this > should slow it down > > /etc/postfix/main.cf > header_checks = pcre:/etc/postfix/header_checks.pcre > >

Re: Chinese Spam

2017-09-07 Thread pgndev
It ain't pretty, or recommended for the long term, but something like this should slow it down /etc/postfix/main.cf header_checks = pcre:/etc/postfix/header_checks.pcre /etc/postfix/header_checks.pcre IF /^(To|From|Cc|Reply-To|Sender|Return-Path): / /@qq\.com/i

Chinese Spam

2017-09-07 Thread Doug Hardie
My server is being hit pretty hard by spam from China. Every email is from a different IP address. The only common item is the message id ends in @qq.com. Is there any way to block those with that ID? -- Doug

Re: can't get server to start postfix

2017-09-07 Thread Viktor Dukhovni
> On Sep 7, 2017, at 6:01 PM, Miles Fidelman wrote: > > That suggests that postfix (actually master) is dying abnormally for some > unknown reason. > > You might do "postfix check" to see if it finds any configuration errors. > > Then you might do "postfix start

Re: can't get server to start postfix

2017-09-07 Thread Miles Fidelman
Ok... [root@mail2 pid]# service postfix stop [root@mail2 pid]# service postfix start Starting postfix: [ OK ] [root@mail2 pid]# service postfix status master dead but pid file exists That suggests that postfix (actually master) is dying abnormally for

Re: can't get server to start postfix

2017-09-07 Thread Viktor Dukhovni
On Thu, Sep 07, 2017 at 09:34:55PM +, Fazzina, Angelo wrote: > Victor: I messed with it a little but no change. I did not suggest "messing" with it. :-) > [root@mail2 ~]# bash -c "ls -ld /var{,/lib{,/postfix{,/master.lock}}}" > drwxr-xr-x. 20 rootroot4096 Mar 2 2017 /var >

Re: Postfix and Maildrop Config

2017-09-07 Thread Stroller
> On 7 Sep 2017, at 22:05, Bill Cole > wrote: > > On 7 Sep 2017, at 11:09, Stroller wrote: > >>> On 6 Sep 2017, at 14:06, Bill Cole >>> wrote: >>> >>> Obviously some Postfix users do use maildrop but it

Re: Postfix and Maildrop Config

2017-09-07 Thread Bill Cole
On 7 Sep 2017, at 2:57, Markus Rosjat wrote: I will take a look at the debug readme but well I can read my logs I made that specific suggestion because that is where you will find a detailed list of what information should be included when seeking help on this mailing list. The purpose of

RE: can't get server to start postfix

2017-09-07 Thread Fazzina, Angelo
I will try that Miles, thanks. Victor: I messed with it a little but no change. [root@mail2 ~]# bash -c "ls -ld /var{,/lib{,/postfix{,/master.lock}}}" drwxr-xr-x. 20 rootroot4096 Mar 2 2017 /var drwxr-xr-x. 29 rootroot4096 Sep 7 03:46 /var/lib drwx--. 2 postfix postfix

Re: can't get server to start postfix

2017-09-07 Thread Miles Fidelman
after a reboot, you could just try "postfix stop" and delete the lock file, then "postfix start" to find zombie processes, you could try "pstree" (shows a tree of processes & sub-processes, in the order they were started at init time - note that none of them are named postfix - the top-level

Re: can't get server to start postfix

2017-09-07 Thread Viktor Dukhovni
On Thu, Sep 07, 2017 at 08:54:48PM +, Fazzina, Angelo wrote: > postfix/postfix-script[3214]: starting the Postfix mail system > postfix/master[3215]: fatal: open lock file /var/lib/postfix/master.lock: > cannot open file: Permission denied > [root@mail2 postfix]# ls -l /var/lib/postfix/ >

RE: can't get server to start postfix

2017-09-07 Thread Fazzina, Angelo
Server has only been on 25 minutes, I rebooted it. Can you see it in this list ? Thanks for trying. -ALF [root@mail2 log]# ps -ef UIDPID PPID C STIME TTY TIME CMD root 1 0 0 16:46 ?00:00:00 /sbin/init root 2 0 0 16:46 ?00:00:00

Re: Postfix and Maildrop Config

2017-09-07 Thread Bill Cole
On 7 Sep 2017, at 11:09, Stroller wrote: On 6 Sep 2017, at 14:06, Bill Cole wrote: Obviously some Postfix users do use maildrop but it is not the most common LDA choice for Postfix. I'd be surprised if it is even in the top 4. Perhaps this

Re: can't get server to start postfix

2017-09-07 Thread Patrick Ben Koetter
you have a zombie master process hanging around. Stop postfix. Get a list of all running processes and check if there's a orphaned master process hanging around. Kill it. Start postfix. p@rick * Fazzina, Angelo : > Hi, > All of a sudden postfix won't load ? where

can't get server to start postfix

2017-09-07 Thread Fazzina, Angelo
Hi, All of a sudden postfix won't load ? where should I look next ? thanks. I tried [root@mail2 postfix]# service postfix start Starting postfix: [ OK ] Logs show Sep 7 16:50:47 mail2 postfix/postfix-script[3214]: starting the Postfix mail system

RE: Restrict outgoing/submission to defined local or virtual users

2017-09-07 Thread Scott Techlist
Matus: >why just outgoing? Are you willing to accept spam with fake from in your >domain? I am not willing. Inbound is already restricted and functioning properly. That said, I migrated my configs from an older version of PF so now you made me worry about *how* it is restricted. I have

Re: Restrict outgoing/submission to defined local or virtual users

2017-09-07 Thread Matus UHLAR - fantomas
On 9/5/2017 2:48 PM, techlist06 wrote: Is it possible to restrict outgoing mail to be from one of my "valid" local or virtual aliases? And I want to restrict outbound from one address in particular. On 05.09.17 15:25, Noel Jones wrote: The easiest way would be to add -o

Re: Postfix and Maildrop Config

2017-09-07 Thread Robert Schetterer
Am 07.09.2017 um 17:09 schrieb Stroller: > >> On 6 Sep 2017, at 14:06, Bill Cole >> wrote: >> >> Obviously some Postfix users do use maildrop but it is not the most common >> LDA choice for Postfix. I'd be surprised if it is even in the top 4. > >

Re: Postfix and Maildrop Config

2017-09-07 Thread Stroller
> On 6 Sep 2017, at 14:06, Bill Cole > wrote: > > Obviously some Postfix users do use maildrop but it is not the most common > LDA choice for Postfix. I'd be surprised if it is even in the top 4. Perhaps this question is off topic, but what MTAs

[no subject]

2017-09-07 Thread Jason Miller
We have a private cloud with all of the servers sending mail via mandrill, and each app/server has its own key. We have a few legacy apps, for example a .net 1.1 app, that can't send via TLS over 587 (and mandrill doesn't support plan smtp over 25), so we set up a postfix server to do relay to

[no subject]

2017-09-07 Thread Jason Miller
We have a medium sized cloud with 90% of servers sending via mandrill and each app/server having its own key. We have a few legacy apps, for example a .net 1.1 app, that won't send via TLS over 587, and mandrill doesn't support plan smtp over 25, so we set up a postfix server to do relay to

Re: bind smtpd to UNIX socket

2017-09-07 Thread Wietse Venema
postfix-user: > Hello everybody. > I want to start the another smtpd process, binded to a UNIX socket, and > configure this smtpd with maximally relaxed policies. > I added a line to master.cf: > lsmtp unix n y n - - smtpd -o smtpd_tls_security_level=none -o > mynetworks_style=host -o

Re: Alias and mailing list

2017-09-07 Thread Enrico Morelli
On Mon, 4 Sep 2017 10:53:48 +0200 Enrico Morelli wrote: > Dear, I installed a new mail server under a Debian 9 using postfix > 3.1.4 (like smtp) and dovecot (like lmtp) in a virtual user > environment. I coming from qmail, so when I want that all mails are > delivered to a

Re: Postfix and Maildrop Config

2017-09-07 Thread Markus Rosjat
well I looked at MAILDROP_README ...didn't help much because it explains the config and I did so. I will take a look at the debug readme but well I can read my logs and it didnt help me even with a very verbose output. for maildrop, I need to migrate courier maildirs so I need to support

bind smtpd to UNIX socket

2017-09-07 Thread postfix-user
Hello everybody. I want to start the another smtpd process, binded to a UNIX socket, and configure this smtpd with maximally relaxed policies. I added a line to master.cf: lsmtp unix n y n - - smtpd -o smtpd_tls_security_level=none -o mynetworks_style=host -o