Limit no of messages per relayhost

2009-01-31 Thread Jack Knowlton
Hi all. I have an postfix installation configured to use my ISP's server as relayhost. I don't want to put too much load on it (and get blacklisted) so I'd like to limit the number of messages sent per minute. I found previous posts on how to do that per destination domain - but how about the relay

Re: Limit no of messages per relayhost

2009-02-01 Thread Jack Knowlton
On Sat, January 31, 2009 3:01 pm, Wietse Venema wrote: > Jack Knowlton: >> Hi all. >> I have an postfix installation configured to use my ISP's server as >> relayhost. >> I don't want to put too much load on it (and get blacklisted) so I'd >> like &g

Log question

2009-06-08 Thread Jack Knowlton
Hi all. Today, while sending an email, I monitored postfix's log. The message was going thru postfix and then relayed to the recipient's MX: Jun 8 13:03:21 dsrv postfix/smtpd[13477]: AADDD17B812: client=whatever[xx.xx.xx.xx], sasl_method=LOGIN, sasl_username=u...@mydomain.com Jun 8 13:03:22 dsrv

Sender based relay server

2010-01-09 Thread Jack Knowlton
Hi all. Our internal postfix server relays all outbound mail thru an external host. How can I set it to use a different relay server when the email comes from a specified domain? Eg. j...@domain1.com -> xxx.xxx.xxx.xxx (default), m...@domain2.com -> yyy.yyy.yyy.yyy Thanks. -JK

Re: Sender based relay server

2010-01-11 Thread Jack Knowlton
On Sat, January 9, 2010 5:34 pm, Stan Hoeppner wrote: > Jack Knowlton put forth on 1/9/2010 9:57 AM: >> Hi all. >> Our internal postfix server relays all outbound mail thru an external >> host. >> How can I set it to use a different relay server when the email comes &g

Re: Sender based relay server

2010-01-11 Thread Jack Knowlton
On Mon, January 11, 2010 5:04 pm, David Koski wrote: > On Monday 11 January 2010, Jack Knowlton wrote: >> Thank you. >> I figured out how to make a per-domain relay, but what is the format for >> having the message directly delivered? I tried both "smtp:" and &qu

Maildir creation

2010-03-01 Thread Jack Knowlton
Hi all. I have a Postfix virtual users setup based on mysql tables. Messages are stored in Maildir format. I am aware that creating a virtual alias @domain1.com -> u...@domain2.com will make Postfix accept emails for any username and deliver them to u...@domain2.com. Is it possible to do the same

Re: Maildir creation

2010-03-01 Thread Jack Knowlton
On Mon, March 1, 2010 11:34 pm, Wietse Venema wrote: > Jack Knowlton: >> I would like Postfix to >> accept mail for any recipient of that particular domain and create the matching Maildir once the first message has been received. >> Thanks, > This is possible but I don'

Maildir ownership/permission flags

2010-03-01 Thread Jack Knowlton
Hi all, I have a Postfix virtual users setup based on mysql tables. Messages are stored in Maildir format. Maildirs are owned by "vmail:vmail" . I want another user to be able to read those Maildir files so I added him to the "vmail" group. Unfortunately Postfix seems to create the directory struc

Spam to sender_bcc_maps

2010-04-20 Thread Jack Knowlton
Hi all. Somehow spammers got hold of a couple addresses in my sender_bcc_maps and are sending mail directly to those. How can I restrict the source of messages to those addresses to localhost only? Thanks, -JK

cidr table on mysql database

2010-08-15 Thread Jack Knowlton
Hi all. Is it possible to store a CIDR access table on a mysql database? It would be very useful so I could have a centralized list to serve all MXs' instead of rsync'ing files each time. Thanks, JK

Remove Received: headers

2010-09-08 Thread Jack Knowlton
Hi all. We have a local postfix server that relays to another postfix server via VPN and I would like to remove the "Received:" headers so that only the last one is included in the email message. How do I proceed to do that? Do I need to set up altermime? Thanks -JK

Edit message in active queue and re-submit

2009-10-26 Thread Jack Knowlton
Hi all. Every day I have a bunch of messages stuck in the active queue because of address typos made by the sender. Some of them I just let exprire and go back to the user, but others could be so easily fixed (eg "hotmal.com" instead of "hotmail.com") that I would like to do that myself. Is there a

Transport map

2009-11-09 Thread Jack Knowlton
Hi all. Is it possible to have a transport map with a regular expression? What I want is to use an external relay server for all the emails to be delivered on Yahoo domains (eg, yahoo.com, yahoo.co.uk, yahoo.es, ecc). If it is possible, how can I implement this? Thanks. -JK

Selective smtpd_sender_restrictions

2009-12-14 Thread Jack Knowlton
Hi all. I currently have this smtpd_sender_restrictions setup on a mail server hosting several domains: smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, check_sender_access hash:/usr/local/etc/postfix/sender_checks, check_sender_access hash:/usr/local/

Return-Path filtering

2012-01-20 Thread Jack Knowlton
Hi all. I'm looking to filter emails that have a specific return-path address. As far as I understand, the rule's going to be in header_checks..but can I REJECT or only DISCARD the message? Also, what should the regex look like? I tried a quick fix yesterday but it doesn't seem to be working: #/^R

Re: Return-Path filtering

2012-01-20 Thread Jack Knowlton
On Fri, January 20, 2012 11:15 am, Ralf Hildebrandt wrote: > * Jack Knowlton : >> Hi all. >> I'm looking to filter emails that have a specific return-path address. > Use check_sender_access > Ok, but will it work even though From:<> != Return-Path:<> ? Al

Re: Return-Path filtering

2012-01-20 Thread Jack Knowlton
On Fri, January 20, 2012 11:24 am, Ralf Hildebrandt wrote: > * Jack Knowlton : >> On Fri, January 20, 2012 11:15 am, Ralf Hildebrandt wrote: >> > * Jack Knowlton : >> >> Hi all. >> >> I'm looking to filter emails that have a specific retur

check_recipient_access in MySQL

2012-02-15 Thread Jack Knowlton
Hi guys. I'm looking into implementing a check_recipient_access as a table inside a MySQL database. It's basically a list of users that have been banned from the system and for whom I don't want a simple 550 user unknown bounce. Currently the list is a flat file hash map: u...@domain.com REJECT Th

Re: check_recipient_access in MySQL

2012-02-15 Thread Jack Knowlton
On Wed, February 15, 2012 5:37 pm, /dev/rob0 wrote: > On Wed, Feb 15, 2012 at 03:50:00PM +0100, Jack Knowlton wrote: >> I'm looking into implementing a check_recipient_access as a table >> inside a MySQL database. It's basically a list of users that have >> been bann

Re: check_recipient_access in MySQL

2012-02-15 Thread Jack Knowlton
On Wed, February 15, 2012 6:08 pm, Brian Evans - Postfix List wrote: > On 2/15/2012 11:57 AM, Jack Knowlton wrote: >> On Wed, February 15, 2012 5:37 pm, /dev/rob0 wrote: >>> On Wed, Feb 15, 2012 at 03:50:00PM +0100, Jack Knowlton wrote: >>>> I'm looking into im

Adding custom header

2012-02-21 Thread Jack Knowlton
Hi guys. My mailserver uses a relayhost which basically only signs messages with DKIM and delivers them. I would like to add a custom header, something like "X-Abuse: if spam/uce email ab...@mydomain.com". How should I go about, without postfix adding the header twice (before and after dkimfilter-o

Re: Adding custom header

2012-02-22 Thread Jack Knowlton
On Wed, February 22, 2012 1:20 am, Wietse Venema wrote: > Jack Knowlton: >> Hi guys. >> My mailserver uses a relayhost which basically only signs messages with >> DKIM and delivers them. >> I would like to add a custom header, something like "X-Abuse: if >>