Re: STOPPING SPAM FROM COMPROMISED ACCOUNTS.

2013-09-23 Thread LuKreme
On 21 Sep 2013, at 18:48 , Wietse Venema wie...@porcupine.org wrote: Use postfwd (www.postfdw.org) or the like to rate-limit mail clients. tyop, the url is http://www.postfwd.org (yes, it took me two tries to figure out what was wrong with it) -- Queen Isabella and King Ferdinand kicked

Problem with slow transport map

2013-09-23 Thread Matt - Opem Solutions
Hi, Ive a postfix server which is used to relay emails to an external smtp server, this was done to prevent the receiving smtp server from being flooeded by to many messages per hour which i did by using the debug command and a sleep 6, in addition to this i added a transport map to slow down

Re: Problem with slow transport map

2013-09-23 Thread Noel Jones
On 9/23/2013 7:17 AM, Matt - Opem Solutions wrote: Hi, Ive a postfix server which is used to relay emails to an external smtp server, this was done to prevent the receiving smtp server from being flooeded by to many messages per hour which i did by using the debug command and a sleep

Re: Problem with slow transport map

2013-09-23 Thread Wietse Venema
Matt - Opem Solutions: [MASTER.CF FILE] smtpslow unix - - n - 1 smtp -D -o syslog_name=postfix-smtp-slow -o max_use=1 The -D (debug) is a bit of a dirty hack as it basically calls a sleep for 6 seconds between messages to ensure it

RE: Problem with slow transport map

2013-09-23 Thread Matt - Opem Solutions
Hi Noel/ Wietse, I was just about to reply i had worked it out when your email came in changed it to 2 and it all worked: smtpslow_destination_recipient_limit = 2 # set this to 2 will take care of the domain. If you set it to 1, throttling will work only if you send mails to the same recipient

Re: Problem with slow transport map

2013-09-23 Thread Wietse Venema
Matt - Opem Solutions: As per Wietse smtp_destination_rate_delay = 6 as an alternative to using the debug command. Use smtpslow_destination_rate_delay = 6, and get rid of the debugger hack. Wietse

RE: Problem with slow transport map

2013-09-23 Thread Matt - Opem Solutions
The problem is i need to 6 second slow down for both smtp and smtpslow, whilst smtpslow would slow down using this it wouldn't slow down smtp as well. The debug hack although dirty was the only way i could to enforce it on both transits and all domains, i set: smtp_destination_rate_delay = 60s

Re: Problem with slow transport map

2013-09-23 Thread Wietse Venema
Matt - Opem Solutions: The problem is i need to 6 second slow down for both smtp and smtpslow, whilst smtpslow would slow down using this it wouldn't slow down smtp as well. Then, use both, and set each delay to an appropriate value. Note that setting _rate_delay on one transport WILL NOT

Re: update: 1 mail stoped by 1 user. Now it is 2 users and I noticed something.

2013-09-23 Thread Josh Cason
The postcat -q -eh command does not work. It does not like the -e??? What do I need to do? Thanks, Josh - Original Message - From: Viktor Dukhovni postfix-us...@dukhovni.org To: postfix-users@postfix.org Sent: Tuesday, September 17, 2013 2:33 PM Subject: Re: update: 1 mail stoped by

Re: update: 1 mail stoped by 1 user. Now it is 2 users and I noticed something.

2013-09-23 Thread Wietse Venema
Josh Cason: The postcat -q -eh command does not work. It does not like the -e??? What do I need to do? # postcat -q queueid | sed '/^$/q' Options -e and -h were added in Postfix 2.7 (over three years ago). Wietse Josh - Original Message - From: Viktor Dukhovni

configuration of virtual_domains

2013-09-23 Thread Tim Prepscius
Hey there, So I'm continuing to configuration postfix. I'm having some problems with virtual domains. The goal of the virtual domains is to enumerate the domains which I'm ok with receiving mail. So in my main.cf file I have: virtual_mailbox_domains = hash:/etc/postfix/config/virtual_domains

AW: configuration of virtual_domains

2013-09-23 Thread Sebastian Heid
Hi Tim, rename /etc/postfix/config/virtual_domains.db back to /etc/postfix/config/virtual_domains and run postmap /etc/postfix/config/virtual_domains after editing that file. Cheers, Sebastian -Ursprüngliche Nachricht- Von:Tim Prepscius timprepsc...@gmail.com Gesendet: Mon 23

Re: configuration of virtual_domains

2013-09-23 Thread Viktor Dukhovni
On Mon, Sep 23, 2013 at 04:58:07PM -0400, Tim Prepscius wrote: I'm having some problems with virtual domains. The goal of the virtual domains is to enumerate the domains which I'm ok with receiving mail. So in my main.cf file I have: virtual_mailbox_domains =

Re: configuration of virtual_domains

2013-09-23 Thread Tim Prepscius
Thank you for this. 1 configuration down! ;-) -tim On 9/23/13, Viktor Dukhovni postfix-us...@dukhovni.org wrote: On Mon, Sep 23, 2013 at 04:58:07PM -0400, Tim Prepscius wrote: I'm having some problems with virtual domains. The goal of the virtual domains is to enumerate the domains which

Re: configuration of virtual_domains

2013-09-23 Thread Viktor Dukhovni
On Mon, Sep 23, 2013 at 09:07:56PM +, Viktor Dukhovni wrote: If you want an indexed table, which is not loaded into memory (scales better for large lists, and typically does not require a reload after updates), then use cdb:, hash:, btree:, ... One more thing, for indexed files each line

piping command stdout to disk

2013-09-23 Thread Tim Prepscius
Hey, Thank again for the help on the previous configuration issue. Ok, so now I'm looking to revise my: main.cf: javapipe_destination_recipient_limit = 1 virtual_transport = javapipe master.cf: javapipe unix - n n - - pipe user=postfix-user flags=DRhuX

Re: piping command stdout to disk

2013-09-23 Thread Viktor Dukhovni
On Mon, Sep 23, 2013 at 05:37:27PM -0400, Tim Prepscius wrote: I'd like to pipe the stdout to a log file. Can I do this? javapipe unix - n n - - pipe user=postfix-user flags=DRhuX argv=java -jar /home/postfix-user/PostfixMailReceiver.jar -args

Re: piping command stdout to disk

2013-09-23 Thread Tim Prepscius
Ok, I will do as you suggest. I have one more question for today, I'll start another thread. -tim On 9/23/13, Viktor Dukhovni postfix-us...@dukhovni.org wrote: On Mon, Sep 23, 2013 at 05:37:27PM -0400, Tim Prepscius wrote: I'd like to pipe the stdout to a log file. Can I do this? javapipe

on send call command

2013-09-23 Thread Tim Prepscius
Hey, Again, thank you very much for the previous configuration questions. So, at the moment, when a mail is received it correctly spawns the java process and does whatever it needs to do. I would also like to hook this same process in when a send event occurs. So: Bob talks to SMTP, sends

Re: on send call command

2013-09-23 Thread Tim Prepscius
I *do* want the mail to be sent. I just want to record exactly what it looks like before it gets sent out. -tim On 9/23/13, Tim Prepscius timprepsc...@gmail.com wrote: Hey, Again, thank you very much for the previous configuration questions. So, at the moment, when a mail is received it

Re: on send call command

2013-09-23 Thread Wietse Venema
Tim Prepscius: Hey, Again, thank you very much for the previous configuration questions. So, at the moment, when a mail is received it correctly spawns the java process and does whatever it needs to do. I would also like to hook this same process in when a send event occurs. So:

Re: on send call command

2013-09-23 Thread Tim Prepscius
Umm, I'm looking for something more canonical. I want to get exactly what will be sent over the network, right before it is sent, or when it is queued. -tim On 9/23/13, Wietse Venema wie...@porcupine.org wrote: Tim Prepscius: Hey, Again, thank you very much for the previous configuration

Re: on send call command

2013-09-23 Thread Wietse Venema
Tim Prepscius: Umm, I'm looking for something more canonical. I want to get exactly what will be sent over the network, right before it is sent, or when it is queued. Postfix is not a network monitoring tool. Use tcpdump or Bro instead. Wietse

Re: on send call command

2013-09-23 Thread Tim Prepscius
No, I don't mean network dump. I mean the full mime-message. With all the headers that have been attached during the postfix process and by (in my case) java-mail, etc. For instance stuff like this: Subject: Re: on send call command In-Reply-To:

Re: on send call command

2013-09-23 Thread /dev/rob0
On Mon, Sep 23, 2013 at 10:18:42PM -0400, Tim Prepscius wrote: On 9/23/13, Wietse Venema wie...@porcupine.org wrote: Tim Prepscius: Umm, I'm looking for something more canonical. I want to get exactly what will be sent over the network, right before it is sent, or when it is queued.

Re: on send call command

2013-09-23 Thread Tim Prepscius
Does always_bcc modify the original message? Reading http://www.postfix.org/postconf.5.html#always_bcc it suggests to me that it does. But perhaps I'm mistaken. If it doesn't I could use it. Are there any hooks along the message send path which I can get the full mime message? -tim On

Re: on send call command

2013-09-23 Thread Noel Jones
On 9/23/2013 9:18 PM, Tim Prepscius wrote: No, I don't mean network dump. I mean the full mime-message. With all the headers that have been attached during the postfix process and by (in my case) java-mail, etc. For instance stuff like this: Subject: Re: on send call command

Re: on send call command

2013-09-23 Thread Tim Prepscius
I need to save the original, of all messages leaving the system. Original meaning whatever postfix is going to send. This is not for testing or for auditing. I will need this running in a production environment. always_bcc, if it does not modify the original message would be sufficient. System

Re: on send call command

2013-09-23 Thread Noel Jones
On 9/23/2013 11:08 PM, Tim Prepscius wrote: I need to save the original, of all messages leaving the system. Original meaning whatever postfix is going to send. This is not for testing or for auditing. I will need this running in a production environment. always_bcc, if it does not