$mydestination for Virtual Domains

2014-10-28 Thread Tom Browder
I am planning to use a single, remotely hosted server with on IP as a mail server (as well as a web server) for sevral virtual domains. The server currently has a name but it is of no significance (and is not identified as belonging) to any of the public domains. As I understand things, I must ha

Forwarding client information with XCLIENT instead of XFORWARD

2014-10-28 Thread Markus Benning
Hello, i'm using a before queue content filter setup with smtpd_proxy_filter and smtp_send_xforward_command=yes. So far no problem. But now i want to implement a whitelisting for some checks based on the client IP address in the content filter. The content filter supports both XFORWARD and XCLIENT

Re: $mydestination for Virtual Domains

2014-10-28 Thread Noel Jones
On 10/28/2014 8:10 AM, Tom Browder wrote: > I am planning to use a single, remotely hosted server with on IP as a > mail server (as well as a web server) for sevral virtual domains. The > server currently has a name but it is of no significance (and is not > identified as belonging) to any of the

Re: $mydestination for Virtual Domains

2014-10-28 Thread Tom Browder
On Tue, Oct 28, 2014 at 8:38 AM, Noel Jones wrote: ... > Do not put a virtual domain in mydestination. > > mydestination can be set explicitly empty, or can be set to > "localhost" or eg. "localhost.example.com" Thanks, Noel, that is very helpful and I don't remember ever seeing that stated so cl

Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
Hi all, I'm new to the list and to Postfix in general. I'm in the process of upgrading and old server I have that's running Qmail. I figured now would be a good time to learn something new as I sure don't remember what I patched Qmail with 10 years ago. Here's the breakdown, this is a fax gatewa

Re: Forwarding client information with XCLIENT instead of XFORWARD

2014-10-28 Thread Wietse Venema
Markus Benning: > Hello, > > i'm using a before queue content filter setup with smtpd_proxy_filter and > smtp_send_xforward_command=yes. So far no problem. > But now i want to implement a whitelisting for some checks based on > the client IP address in the content filter. > The content filter supp

Re: Migrating to postfix

2014-10-28 Thread Noel Jones
On 10/28/2014 8:51 AM, Jason Staudenmayer wrote: > Hi all, I’m new to the list and to Postfix in general. > > I’m in the process of upgrading and old server I have that’s running > Qmail. I figured now would be a good time to learn something new as > I sure don’t remember what I patched Qmail with

Re: Migrating to postfix

2014-10-28 Thread Viktor Dukhovni
On Tue, Oct 28, 2014 at 01:51:12PM +, Jason Staudenmayer wrote: > Here's the breakdown, this is a fax gateway server with only one > local user. I'm looking to replicate what I have Qmail doing. Right > now it will accept all email for the address format > . main.cf: # Ideally you

Re: Migrating to postfix

2014-10-28 Thread Wietse Venema
Jason Staudenmayer: > Hi all, I'm new to the list and to Postfix in general. I'm in the > process of upgrading and old server I have that's running Qmail. > I figured now would be a good time to learn something new as I > sure don't remember what I patched Qmail with 10 years ago. > > Here's the b

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
WOW you guys are fast! Thanks for the info I'll give this a shot today. (sorry for top posting - stupid Outlook) -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Tuesday, October 28, 2014 10:23 AM To: Postf

Re: Migrating to postfix

2014-10-28 Thread Viktor Dukhovni
On Tue, Oct 28, 2014 at 02:49:18PM +, Jason Staudenmayer wrote: > WOW you guys are fast! > Thanks for the info I'll give this a shot today. Don't forget the 'fax_destination_recipient_limit = 1' setting. Just in case some user sends the same fax to multiple phone numbers. -- Viktor.

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
I did add that. Looks like it's starting to come together. When the master.cf script is called where does that get run (argv=/path/to/command $sender $recipient)? I'm going to assume that the user= points to the user that is going to execute the script correct? Does this then execute in the use

Re: Migrating to postfix

2014-10-28 Thread Wietse Venema
Jason Staudenmayer: > I did add that. > > Looks like it's starting to come together. When the master.cf > script is called where does that get run (argv=/path/to/command > $sender $recipient)? I'm going to assume that the user= points to > the user that is going to execute the script correct? Does

Re: Migrating to postfix

2014-10-28 Thread Wietse Venema
Jason Staudenmayer: > Sorry I missed those links (they helped). > Looks like it's trying to send all the email off to my main mail > server. I've tried changing the transports, virtual and relay > settings in master but it's still sending anything formatted as > fax-###@aafax.mydomain.com off

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
You're right: (sorry for the text wall) [root@aafax postfix]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 h

Re: Migrating to postfix

2014-10-28 Thread Wietse Venema
Jason Staudenmayer: > transport: > @aafax.adventureaquarium.com fax: I wrote: /etc/postfix/transport: aafax.mydomain.com fax: Wietse > relay_recipients: > @aafax.adventureaquarium.com does-not-matter > > > Log from trying to send a test to fax-3653...@aafax.adventureaquarium.com:

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
Typo, I fixed that and tried again. Oct 28 14:47:19 localhost postfix/qmgr[24359]: 3ECA6236C8: from=<>, size=2267, nrcpt=1 (queue active) Oct 28 14:47:19 localhost postfix/smtp[24361]: connect to cust12182-1.in.mailcontrol.com[208.87.233.190]:25: Connection refused Oct 28 14:47:19 localhost post

Re: Migrating to postfix

2014-10-28 Thread Wietse Venema
Jason Staudenmayer: > Oct 28 14:48:11 localhost postfix/local[24367]: 8A330231BD: > to=, relay=local, delay=30, > delays=30/0.07/0/0.1, dsn=5.1.1, status=bounced (unknown user: "CENSORED311") You have mis-configured MYDESTINATION in main.cf, therefore mail goes to the LOCAL daemon instead of the

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
Ok I found why it's dumping fax@ email to root, /etc/aliases had a default entry for fax: Still not taking addresses in the format fax-(phonenumber)@ -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Jason Staudenmayer Sent: Tu

Re: Migrating to postfix

2014-10-28 Thread Wietse Venema
Jason Staudenmayer: > Ok I found why it's dumping fax@ email to root, /etc/aliases had a default > entry for fax: > Still not taking addresses in the format fax-(phonenumber)@ DO NOT LIST the faxdomain in MYDESTINATION Wietse

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
SO it should have just the localhost or should it be empty? -Original Message- From: Wietse Venema [mailto:wie...@porcupine.org] Sent: Tuesday, October 28, 2014 3:28 PM To: Jason Staudenmayer Cc: Wietse Venema; postfix-users@postfix.org Subject: Re: Migrating to postfix Jason Staudenmaye

RE: Migrating to postfix

2014-10-28 Thread Jason Staudenmayer
Wait I think I got working now -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Jason Staudenmayer Sent: Tuesday, October 28, 2014 3:34 PM To: Wietse Venema Cc: postfix-users@postfix.org Subject: RE: Migrating to postfix SO it

virtual_alias table rewrite and before_queue content filter

2014-10-28 Thread Chad M Stewart
I'm trying to get postfix --smtp--> amavisd --lmtp--> dovecot all setup and working nicely together. I've configured amavisd as a before_queue filter in Postfix. smtpd pass - - n - 20 smtpd -o smtpd_proxy_filter=127.0.0.1:10024 -o smtpd_client

Re: virtual_alias table rewrite and before_queue content filter

2014-10-28 Thread Viktor Dukhovni
On Tue, Oct 28, 2014 at 08:23:15PM -0500, Chad M Stewart wrote: > I'm trying to get postfix --smtp--> amavisd --lmtp--> dovecot all setup > and working nicely together. I've configured amavisd as a before_queue > filter in Postfix. That's fine, but address rewriting happens in cleanup(8) which w

Re: virtual_alias table rewrite and before_queue content filter

2014-10-28 Thread Chad M Stewart
Thanks Viktor. I know I've read that before but I deal with about 3 different MTAs in a given week, so I don't always remember all the in/outs of each. :) -Chad On Oct 28, 2014, at 8:52 PM, Viktor Dukhovni wrote: > On Tue, Oct 28, 2014 at 08:23:15PM -0500, Chad M Stewart wrote: > >> I'm