double bounce messages 'from'

2017-01-16 Thread Dominic Raferd
One of the few remaining issues on my postfix server is that
double-bounce messages don't come from the 'right' envelope sender.

I would like it to be double_bou...@mydomain.tld, or (better)
double_bounce+vps3456...@mydomain.tld. Instead it is
double_bou...@vps3456789.mydomain.tld. In other words the domain part
of the sender address contains a sub-domain. This breaks our spf and
is untidy; and it doesn't happen with other mail messages created on
the server (e.g. by cron), which come from vps3456...@mydomain.tld. Is
this fixable? I don't think it would be right to set
myhostname=mydomain.tld because the server's FQDN is
vps3456789.mydomain.tld.

At present I have:
# grep ^my /etc/postfix/main.cf
mydomain = mydomain.tld
myhostname = vps3456789.mydomain.tld
mynetworks_style = subnet
myorigin = /etc/mailname
# cat /etc/mailname
mydomain.tld

Thanks, Dominic


Re: double bounce messages 'from'

2017-01-16 Thread Wietse Venema
Dominic Raferd:
> One of the few remaining issues on my postfix server is that
> double-bounce messages don't come from the 'right' envelope sender.

man 5 postconf | less '+/^double_bounce_sender'

This also is the default for address_verify_sender.
Wietse


Re: [Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option

2017-01-16 Thread Wietse Venema
Wietse Venema:
> Christian Ro??ner:
> > Hi,
> > 
> > I have looked at man 5 postconf, if there exists an option to add the 
> > envelope sender to the postfix smtp client, but I didn'T find one.
> > 
> > If an account gets stolen and this account starts sending lots of mails, it 
> > often leads to RBLs. If you try to find the account that was compromised, a 
> > first command would be something like:
> > 
> > grep "postfix/smtp\[" mail.log | grep -i reject
> 
> You could collate.pl, included with Postfix source code, and posted
> here regularly.
> 
> Some people might want to correlate some other property (size?)
> with 'reject'.  Better not to try to do all that inside Postfix.

perl collate.pl /the/log/file  | perl -e '
$/=""; 
while (<>) { 
print "$1\n" if /from=(\S+),.+postfix\/smtp\[.+status=bounced/s; 
}
' | sort | uniq -c | sort -nr | less

Or put everything on one line.

Wietse


SV: [Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option [invalid signature!] [invalid signature!]

2017-01-16 Thread Sebastian Nielsen
Oops wrong, forgot about reject... (I tested on my system and I currently have 
no outgoing rejects)

grep "postfix/smtp\[" LOGFILE | grep -i "reject" | grep -io 
"\]\:\s[0123456789ABCDEF]*\:" | grep -io "[0123456789ABCDEF]*" | grep -f - 
LOGFILE | grep "postfix/qmgr\[" | grep "from="


-Ursprungligt meddelande-
Från: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
För Christian Ro¨ßner
Skickat: den 16 januari 2017 15:17
Till: Sebastian Nielsen 
Kopia: Postfix users 
Ämne: Re: [Feature-request for 3.2] log from= in postfix/smtp - or looking for 
unknown option [invalid signature!] [invalid signature!]

Hi,

not smtpd ;-) smtp client

> Am 16.01.2017 um 15:08 schrieb Sebastian Nielsen :
> 
> It do log from=.
> Default config from debian:
> 
> root@linuxlite-desktop:/var/log# grep NOQUEUE syslog.1 Jan 15 11:12:37 
> linuxlite-desktop postfix/smtpd[31407]: NOQUEUE: reject: RCPT from 
> unknown[202.12.83.69]: 554 5.7.1 : Sender address 
> rejected: Access denied; from= 
> to= proto=ESMTP 
> helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
> Jan 15 11:12:42 linuxlite-desktop postfix/smtpd[31409]: NOQUEUE: 
> reject: RCPT from unknown[202.12.83.69]: 554 5.7.1 
> : Sender address rejected: Access denied; 
> from= to= proto=ESMTP 
> helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
> Jan 15 12:57:05 linuxlite-desktop postfix/smtpd[32440]: NOQUEUE: 
> reject: RCPT from 1-160-42-66.dynamic.hinet.net[1.160.42.66]: 554 
> 5.7.1 : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 15 14:28:40 linuxlite-desktop 
> postfix/smtpd[956]: NOQUEUE: reject: RCPT from unknown[114.130.4.61]: 
> 554 5.7.1 : Relay access denied; from= 
> to= proto=ESMTP helo=<192.168.0.137> Jan 15 16:15:46 
> linuxlite-desktop postfix/smtpd[2263]: NOQUEUE: reject: RCPT from 
> 111-251-109-66.dynamic.hinet.net[111.251.109.66]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 15 19:52:43 linuxlite-desktop 
> postfix/smtpd[4638]: NOQUEUE: reject: RCPT from 
> 1-160-42-242.dynamic.hinet.net[1.160.42.242]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 16 00:16:50 linuxlite-desktop 
> postfix/smtpd[7278]: NOQUEUE: reject: RCPT from 
> 1-162-232-106.dynamic.hinet.net[1.162.232.106]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 16 00:32:10 linuxlite-desktop 
> postfix/smtpd[7443]: NOQUEUE: reject: RCPT from 
> 24-54-48-245.sh.cgocable.ca[24.54.48.245]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=ESMTP helo=<192.168.0.247> Jan 16 05:50:33 
> linuxlite-desktop postfix/smtpd[11103]: NOQUEUE: reject: RCPT from 
> 111-251-103-173.dynamic.hinet.net[111.251.103.173]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> root@linuxlite-desktop:/var/log#
> 
> -Ursprungligt meddelande-
> Från: owner-postfix-us...@postfix.org 
> [mailto:owner-postfix-us...@postfix.org] För Christian Ro¨ßner
> Skickat: den 16 januari 2017 14:59
> Till: Postfix users 
> Ämne: [Feature-request for 3.2] log from= in postfix/smtp - or looking 
> for unknown option [invalid signature!]
> 
> Hi,
> 
> I have looked at man 5 postconf, if there exists an option to add the 
> envelope sender to the postfix smtp client, but I didn'T find one.
> 
> If an account gets stolen and this account starts sending lots of mails, it 
> often leads to RBLs. If you try to find the account that was compromised, a 
> first command would be something like:
> 
> grep "postfix/smtp\[" mail.log | grep -i reject
> 
> which will only give you thousands of queue-IDs. But this makes it harder to 
> dive deeper in searching for the compromised account, as you can not simply 
> enhance bash commands and sort for the from= filed (because it does not 
> exist).
> 
> Therefor I ask, if it is possible to add this little feature to 3.2 (if not 
> already frozen code).
> 
> Thanks in advance
> 
> ‌Christian Rößner‌
> --
> Erlenwiese 14, 36304 Alsfeld
> T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345
> 
> 


‌Christian Rößner‌
--
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345




smime.p7s
Description: S/MIME Cryptographic Signature


SV: [Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option [invalid signature!] [invalid signature!]

2017-01-16 Thread Sebastian Nielsen
Try this:

grep "postfix/smtp\[" LOGFILE | grep -io "\]\:\s[0123456789ABCDEF]*\:" | grep 
-io "[0123456789ABCDEF]*" | grep -f - LOGFILE | grep "postfix/qmgr\[" | grep 
"from="

-Ursprungligt meddelande-
Från: Christian Rößner [mailto:c...@roessner-network-solutions.com] 
Skickat: den 16 januari 2017 15:17
Till: Sebastian Nielsen 
Kopia: Postfix users 
Ämne: Re: [Feature-request for 3.2] log from= in postfix/smtp - or looking for 
unknown option [invalid signature!] [invalid signature!]

Hi,

not smtpd ;-) smtp client

> Am 16.01.2017 um 15:08 schrieb Sebastian Nielsen :
> 
> It do log from=.
> Default config from debian:
> 
> root@linuxlite-desktop:/var/log# grep NOQUEUE syslog.1 Jan 15 11:12:37 
> linuxlite-desktop postfix/smtpd[31407]: NOQUEUE: reject: RCPT from 
> unknown[202.12.83.69]: 554 5.7.1 : Sender address 
> rejected: Access denied; from= 
> to= proto=ESMTP 
> helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
> Jan 15 11:12:42 linuxlite-desktop postfix/smtpd[31409]: NOQUEUE: 
> reject: RCPT from unknown[202.12.83.69]: 554 5.7.1 
> : Sender address rejected: Access denied; 
> from= to= proto=ESMTP 
> helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
> Jan 15 12:57:05 linuxlite-desktop postfix/smtpd[32440]: NOQUEUE: 
> reject: RCPT from 1-160-42-66.dynamic.hinet.net[1.160.42.66]: 554 
> 5.7.1 : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 15 14:28:40 linuxlite-desktop 
> postfix/smtpd[956]: NOQUEUE: reject: RCPT from unknown[114.130.4.61]: 
> 554 5.7.1 : Relay access denied; from= 
> to= proto=ESMTP helo=<192.168.0.137> Jan 15 16:15:46 
> linuxlite-desktop postfix/smtpd[2263]: NOQUEUE: reject: RCPT from 
> 111-251-109-66.dynamic.hinet.net[111.251.109.66]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 15 19:52:43 linuxlite-desktop 
> postfix/smtpd[4638]: NOQUEUE: reject: RCPT from 
> 1-160-42-242.dynamic.hinet.net[1.160.42.242]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 16 00:16:50 linuxlite-desktop 
> postfix/smtpd[7278]: NOQUEUE: reject: RCPT from 
> 1-162-232-106.dynamic.hinet.net[1.162.232.106]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> Jan 16 00:32:10 linuxlite-desktop 
> postfix/smtpd[7443]: NOQUEUE: reject: RCPT from 
> 24-54-48-245.sh.cgocable.ca[24.54.48.245]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=ESMTP helo=<192.168.0.247> Jan 16 05:50:33 
> linuxlite-desktop postfix/smtpd[11103]: NOQUEUE: reject: RCPT from 
> 111-251-103-173.dynamic.hinet.net[111.251.103.173]: 554 5.7.1 
> : Relay access denied; 
> from= to= proto=SMTP 
> helo=<46.227.69.210> root@linuxlite-desktop:/var/log#
> 
> -Ursprungligt meddelande-
> Från: owner-postfix-us...@postfix.org 
> [mailto:owner-postfix-us...@postfix.org] För Christian Ro¨ßner
> Skickat: den 16 januari 2017 14:59
> Till: Postfix users 
> Ämne: [Feature-request for 3.2] log from= in postfix/smtp - or looking 
> for unknown option [invalid signature!]
> 
> Hi,
> 
> I have looked at man 5 postconf, if there exists an option to add the 
> envelope sender to the postfix smtp client, but I didn'T find one.
> 
> If an account gets stolen and this account starts sending lots of mails, it 
> often leads to RBLs. If you try to find the account that was compromised, a 
> first command would be something like:
> 
> grep "postfix/smtp\[" mail.log | grep -i reject
> 
> which will only give you thousands of queue-IDs. But this makes it harder to 
> dive deeper in searching for the compromised account, as you can not simply 
> enhance bash commands and sort for the from= filed (because it does not 
> exist).
> 
> Therefor I ask, if it is possible to add this little feature to 3.2 (if not 
> already frozen code).
> 
> Thanks in advance
> 
> ‌Christian Rößner‌
> --
> Erlenwiese 14, 36304 Alsfeld
> T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345
> 
> 


‌Christian Rößner‌
--
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option

2017-01-16 Thread Wietse Venema
Christian Ro??ner:
> Hi,
> 
> I have looked at man 5 postconf, if there exists an option to add the 
> envelope sender to the postfix smtp client, but I didn'T find one.
> 
> If an account gets stolen and this account starts sending lots of mails, it 
> often leads to RBLs. If you try to find the account that was compromised, a 
> first command would be something like:
> 
> grep "postfix/smtp\[" mail.log | grep -i reject

You could collate.pl, included with Postfix source code, and posted
here regularly.

Some people might want to correlate some other property (size?)
with 'reject'.  Better not to try to do all that inside Postfix.

Wietse


Re: [Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option [invalid signature!]

2017-01-16 Thread Christian Rößner
Hi,

not smtpd ;-) smtp client

> Am 16.01.2017 um 15:08 schrieb Sebastian Nielsen :
> 
> It do log from=.
> Default config from debian:
> 
> root@linuxlite-desktop:/var/log# grep NOQUEUE syslog.1
> Jan 15 11:12:37 linuxlite-desktop postfix/smtpd[31407]: NOQUEUE: reject: RCPT 
> from unknown[202.12.83.69]: 554 5.7.1 : Sender address 
> rejected: Access denied; from= to= 
> proto=ESMTP helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
> Jan 15 11:12:42 linuxlite-desktop postfix/smtpd[31409]: NOQUEUE: reject: RCPT 
> from unknown[202.12.83.69]: 554 5.7.1 : Sender address 
> rejected: Access denied; from= to= 
> proto=ESMTP helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
> Jan 15 12:57:05 linuxlite-desktop postfix/smtpd[32440]: NOQUEUE: reject: RCPT 
> from 1-160-42-66.dynamic.hinet.net[1.160.42.66]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=SMTP helo=<46.227.69.210>
> Jan 15 14:28:40 linuxlite-desktop postfix/smtpd[956]: NOQUEUE: reject: RCPT 
> from unknown[114.130.4.61]: 554 5.7.1 : Relay access 
> denied; from= to= proto=ESMTP 
> helo=<192.168.0.137>
> Jan 15 16:15:46 linuxlite-desktop postfix/smtpd[2263]: NOQUEUE: reject: RCPT 
> from 111-251-109-66.dynamic.hinet.net[111.251.109.66]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=SMTP helo=<46.227.69.210>
> Jan 15 19:52:43 linuxlite-desktop postfix/smtpd[4638]: NOQUEUE: reject: RCPT 
> from 1-160-42-242.dynamic.hinet.net[1.160.42.242]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=SMTP helo=<46.227.69.210>
> Jan 16 00:16:50 linuxlite-desktop postfix/smtpd[7278]: NOQUEUE: reject: RCPT 
> from 1-162-232-106.dynamic.hinet.net[1.162.232.106]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=SMTP helo=<46.227.69.210>
> Jan 16 00:32:10 linuxlite-desktop postfix/smtpd[7443]: NOQUEUE: reject: RCPT 
> from 24-54-48-245.sh.cgocable.ca[24.54.48.245]: 554 5.7.1 : 
> Relay access denied; from= to= proto=ESMTP 
> helo=<192.168.0.247>
> Jan 16 05:50:33 linuxlite-desktop postfix/smtpd[11103]: NOQUEUE: reject: RCPT 
> from 111-251-103-173.dynamic.hinet.net[111.251.103.173]: 554 5.7.1 
> : Relay access denied; from= 
> to= proto=SMTP helo=<46.227.69.210>
> root@linuxlite-desktop:/var/log#
> 
> -Ursprungligt meddelande-
> Från: owner-postfix-us...@postfix.org 
> [mailto:owner-postfix-us...@postfix.org] För Christian Ro¨ßner
> Skickat: den 16 januari 2017 14:59
> Till: Postfix users 
> Ämne: [Feature-request for 3.2] log from= in postfix/smtp - or looking for 
> unknown option [invalid signature!]
> 
> Hi,
> 
> I have looked at man 5 postconf, if there exists an option to add the 
> envelope sender to the postfix smtp client, but I didn'T find one.
> 
> If an account gets stolen and this account starts sending lots of mails, it 
> often leads to RBLs. If you try to find the account that was compromised, a 
> first command would be something like:
> 
> grep "postfix/smtp\[" mail.log | grep -i reject
> 
> which will only give you thousands of queue-IDs. But this makes it harder to 
> dive deeper in searching for the compromised account, as you can not simply 
> enhance bash commands and sort for the from= filed (because it does not 
> exist).
> 
> Therefor I ask, if it is possible to add this little feature to 3.2 (if not 
> already frozen code).
> 
> Thanks in advance
> 
> ‌Christian Rößner‌
> -- 
> Erlenwiese 14, 36304 Alsfeld
> T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345
> 
> 


‌Christian Rößner‌
-- 
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345



smime.p7s
Description: S/MIME cryptographic signature


SV: [Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option [invalid signature!]

2017-01-16 Thread Sebastian Nielsen
It do log from=.
Default config from debian:

root@linuxlite-desktop:/var/log# grep NOQUEUE syslog.1
Jan 15 11:12:37 linuxlite-desktop postfix/smtpd[31407]: NOQUEUE: reject: RCPT 
from unknown[202.12.83.69]: 554 5.7.1 : Sender address 
rejected: Access denied; from= to= 
proto=ESMTP helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
Jan 15 11:12:42 linuxlite-desktop postfix/smtpd[31409]: NOQUEUE: reject: RCPT 
from unknown[202.12.83.69]: 554 5.7.1 : Sender address 
rejected: Access denied; from= to= 
proto=ESMTP helo=<202-12-83-69-dynamic.mangalore.cscnet.in>
Jan 15 12:57:05 linuxlite-desktop postfix/smtpd[32440]: NOQUEUE: reject: RCPT 
from 1-160-42-66.dynamic.hinet.net[1.160.42.66]: 554 5.7.1 
: Relay access denied; from= 
to= proto=SMTP helo=<46.227.69.210>
Jan 15 14:28:40 linuxlite-desktop postfix/smtpd[956]: NOQUEUE: reject: RCPT 
from unknown[114.130.4.61]: 554 5.7.1 : Relay access denied; 
from= to= proto=ESMTP helo=<192.168.0.137>
Jan 15 16:15:46 linuxlite-desktop postfix/smtpd[2263]: NOQUEUE: reject: RCPT 
from 111-251-109-66.dynamic.hinet.net[111.251.109.66]: 554 5.7.1 
: Relay access denied; from= 
to= proto=SMTP helo=<46.227.69.210>
Jan 15 19:52:43 linuxlite-desktop postfix/smtpd[4638]: NOQUEUE: reject: RCPT 
from 1-160-42-242.dynamic.hinet.net[1.160.42.242]: 554 5.7.1 
: Relay access denied; from= 
to= proto=SMTP helo=<46.227.69.210>
Jan 16 00:16:50 linuxlite-desktop postfix/smtpd[7278]: NOQUEUE: reject: RCPT 
from 1-162-232-106.dynamic.hinet.net[1.162.232.106]: 554 5.7.1 
: Relay access denied; from= 
to= proto=SMTP helo=<46.227.69.210>
Jan 16 00:32:10 linuxlite-desktop postfix/smtpd[7443]: NOQUEUE: reject: RCPT 
from 24-54-48-245.sh.cgocable.ca[24.54.48.245]: 554 5.7.1 : 
Relay access denied; from= to= proto=ESMTP 
helo=<192.168.0.247>
Jan 16 05:50:33 linuxlite-desktop postfix/smtpd[11103]: NOQUEUE: reject: RCPT 
from 111-251-103-173.dynamic.hinet.net[111.251.103.173]: 554 5.7.1 
: Relay access denied; from= 
to= proto=SMTP helo=<46.227.69.210>
root@linuxlite-desktop:/var/log#

-Ursprungligt meddelande-
Från: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
För Christian Ro¨ßner
Skickat: den 16 januari 2017 14:59
Till: Postfix users 
Ämne: [Feature-request for 3.2] log from= in postfix/smtp - or looking for 
unknown option [invalid signature!]

Hi,

I have looked at man 5 postconf, if there exists an option to add the envelope 
sender to the postfix smtp client, but I didn'T find one.

If an account gets stolen and this account starts sending lots of mails, it 
often leads to RBLs. If you try to find the account that was compromised, a 
first command would be something like:

grep "postfix/smtp\[" mail.log | grep -i reject

which will only give you thousands of queue-IDs. But this makes it harder to 
dive deeper in searching for the compromised account, as you can not simply 
enhance bash commands and sort for the from= filed (because it does not exist).

Therefor I ask, if it is possible to add this little feature to 3.2 (if not 
already frozen code).

Thanks in advance

‌Christian Rößner‌
-- 
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345




smime.p7s
Description: S/MIME Cryptographic Signature


[Feature-request for 3.2] log from= in postfix/smtp - or looking for unknown option

2017-01-16 Thread Christian Rößner
Hi,

I have looked at man 5 postconf, if there exists an option to add the envelope 
sender to the postfix smtp client, but I didn'T find one.

If an account gets stolen and this account starts sending lots of mails, it 
often leads to RBLs. If you try to find the account that was compromised, a 
first command would be something like:

grep "postfix/smtp\[" mail.log | grep -i reject

which will only give you thousands of queue-IDs. But this makes it harder to 
dive deeper in searching for the compromised account, as you can not simply 
enhance bash commands and sort for the from= filed (because it does not exist).

Therefor I ask, if it is possible to add this little feature to 3.2 (if not 
already frozen code).

Thanks in advance

‌Christian Rößner‌
-- 
Erlenwiese 14, 36304 Alsfeld
T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345



smime.p7s
Description: S/MIME cryptographic signature


Re: Autoresponder?

2017-01-16 Thread Ralph Corderoy
Hi,

> So, how would I do this with only sending a single "bounce" to any
> email address?

Pipe to vacation(1), e.g. the user's ~/.forward:

\foo, "|/usr/bin/vacation foo"

The first keeps a copy of the email.  vacation can be told to only send
the reply once per N days for each recipient, default seven IIRC.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


Autoresponder?

2017-01-16 Thread @lbutlr
I have an email account that belonged to someone who died recently. Rather than 
simply shutdown the account and bounce all future emails, the family would like 
some sort of automated messages for at least a few months saying something like 
“ died in November, 2016. Please redirect emails to ”.

I think this is a bad idea and they should just keep checking the current 
address of another month or six, but I did say I’d ask.

So, how would I do this with only sending a single ‘bounce’ to any email 
address?

I have gone through an unsubscribed from all the legitimate mailing lists like 
amazon and such.

Thankfully, there is not a lot of spam on this account.

I feel I’m missing something obvious.

-- 
Apple broke AppleScripting signatures in Mail.app, so no random signatures.



check_sender_regexp - problem

2017-01-16 Thread Zalezny Niezalezny
Hi,

in our environment we have two domains:

example.com - 1.1.1.1
news.example.com   - 2.2.2.2

configured on the external gateway. Each domain using separate IP
addresses.


Postfix mail server with mailboxes has been configured on the separate
system:

3.3.3.3


>From this system we would like to send messages
 From: @example.com to 1.1.1.1
and messages
 From: @news.example.com to 2.2.2.2

How to do it properly ?

On my postfix I have configured:

smtpd_sender_restrictions =
check_sender_access regexp:/etc/postfix/check_sender_regexp

/.*@example.com/FILTERsmtp:1.1.1.1
/.*@news.example.com/ FILTER smtp:2.2.2.2


For some reason its not working. System sending messages to default relay
1.1.1.1. How to configure it properly to send messages with specified
sender domain to specified gateways ?



Cheers

Zalezny