Re: Rejecting mail based on destination MX records

2012-08-28 Thread Ralf Hildebrandt
* Jon A. : > I've seen an increased number of issues with some domains that use > fakemx.net to deny mail and am looking for some advice on how to best > reject email for domains that only have one MX record that points to > fakemx.net servers. You'd have to use a policy daemon linke postfwd for t

Re: master.cf variables (feature request)

2012-08-28 Thread Viktor Dukhovni
On Wed, Aug 29, 2012 at 02:48:35PM +1200, Michael wrote: > I would like the ability to specify the destination username by > variable when calling an external program (like Spam Assassin) in > master.cf. This is either already supported (see pipe(8)) or impossible (see spawn(8)). You need to expl

master.cf variables (feature request)

2012-08-28 Thread Michael
I would like the ability to specify the destination username by variable when calling an external program (like Spam Assassin) in master.cf. Postfix knows what the destination username is because it looked it up when looking up "virtual_mailbox_maps" DB. At present it's assumption seems to b

Re: Preventing postscreen from logging local connections?

2012-08-28 Thread Rich Carreiro
On Aug 27, 2012, at 11:41, Michael Orlitzky wrote: > On 08/27/12 11:25, Rich Carreiro wrote: >> >> I know the real answer is to figure out how to modify the >> relevant logwatch service script and/or to figure out how to get >> mailmain to submit on 587. > > Update postfix-logwatch[1], this sh

Re: Rejecting mail based on destination MX records

2012-08-28 Thread Noel Jones
On 8/28/2012 3:38 PM, Gábor Lénárt wrote: > On Tue, Aug 28, 2012 at 04:33:16PM -0400, Jon A. wrote: >> I'd like to immediately reject mail for all destinations with ONLY a >> fakemx.net record. While I could block these as I find them, I'd prefer to >> detect it if possible. >> One such: >> >> hit

Re: status=bounced (user unknown)

2012-08-28 Thread Benny Pedersen
Den 2012-08-28 13:37, Thufir skrev: -rw-r--r-- 1 root list 0 Aug 28 04:36 aliases no maillist created, this is why it bounces Like that? Not sure how to see what's in aliases.db, but that seems right. read mailman howto setup postfix virtualdomains in mailman

Re: status=bounced (user unknown)

2012-08-28 Thread Benny Pedersen
Den 2012-08-28 13:16, Ralf Hildebrandt skrev: * Thufir : Aug 28 02:40:57 dur postfix/smtpd[22388]: error: open database /var/lib/mailman/data/aliases.db: No such file or directory postalias /var/lib/mailman/data/aliases mailman would to this if setup to do so

Re: status=bounced (user unknown)

2012-08-28 Thread Benny Pedersen
Den 2012-08-28 11:55, Thufir skrev: Aug 28 02:40:57 dur postfix/smtpd[22388]: error: open database /var/lib/mailman/data/aliases.db: No such file or directory correct this in main.cf

Re: Rejecting mail based on destination MX records

2012-08-28 Thread Gábor Lénárt
On Tue, Aug 28, 2012 at 04:33:16PM -0400, Jon A. wrote: > I'd like to immediately reject mail for all destinations with ONLY a > fakemx.net record. While I could block these as I find them, I'd prefer to > detect it if possible. > One such: > > hitmail.com mail is handled by 0 mx.fakemx.net. I a

Rejecting mail based on destination MX records

2012-08-28 Thread Jon A.
I've seen an increased number of issues with some domains that use fakemx.net to deny mail and am looking for some advice on how to best reject email for domains that only have one MX record that points to fakemx.net servers. While I question the effectiveness, I have no problem with someone tryin

Re: high-speed postfix configuration

2012-08-28 Thread Viktor Dukhovni
On Tue, Aug 28, 2012 at 11:48:19AM -0500, Stan Hoeppner wrote: > So maybe for this particular application a ramdisk isn't a horrible > idea. But he still has the problem of implementing parallel submission > in his java application, otherwise it won't matter if it's a ramdisk or > an old 3600 RPM

Re: Route incoming @server.example.com to j...@example.com

2012-08-28 Thread Ralf Hildebrandt
> Just to clarify, the above example would go in a header_checks file. Indeed. > It might be safer to do this in a check_client_access map so you > don't rely on a header, assuming the test box has a static IP: > ip.of.test.box REDIRECT j...@example.com Yes, that would be more elegant. -- Ra

Re: status=bounced (user unknown)

2012-08-28 Thread Ansgar Wiechers
On 2012-08-28 Thufir wrote: > relay_domains = lists.dur.bounceme.net You configured list.dur.bounceme.net as the domain for your mailing lists, but ... > Aug 28 04:28:36 dur postfix/smtp[5985]: E0507184319: > to=, relay=none, delay=58, > delays=58/0.02/0.06/0, dsn=4.4.1, status=deferred (connect

Re: aliases, was Re: User unknown in local recipient table

2012-08-28 Thread /dev/rob0
On Tue, Aug 28, 2012 at 08:41:28AM -0700, Thufir wrote: > Is the problem that mailmain isn't picking up the aliases? > Specifically, alias_maps and alias_database, that there's a mismatch? > If so, I'm not spotting it. > > > > root@dur:~# > root@dur:~# tail /var/log/mail.log snip > Aug 28 08:29:

Re: high-speed postfix configuration

2012-08-28 Thread Stan Hoeppner
On 8/28/2012 8:16 AM, Mike wrote: > > >> The first thing that comes to mind is using a ramdisk for the queue > directories. >> But I'm doubting Postfix will work with queue directories on a > ramdisk. Wietse can answer this. > > There's no reason Postfix won't work with /var/spool/postfix mounte

Re: Route incoming @server.example.com to j...@example.com

2012-08-28 Thread Kenton Brede
On Tue, Aug 28, 2012 at 9:42 AM, Kenton Brede wrote: > I've been beating my head on this one. I've got a group who has a > windows test box and they want all email from that box to go to one > email address. Thanks guys, I tried it both ways. Now I have a couple more tricks up my sleeve. :)

aliases, was Re: User unknown in local recipient table

2012-08-28 Thread Thufir
Is the problem that mailmain isn't picking up the aliases? Specifically, alias_maps and alias_database, that there's a mismatch? If so, I'm not spotting it. root@dur:~# root@dur:~# tail /var/log/mail.log Aug 28 08:28:43 dur postfix/master[12208]: terminating on signal 15 Aug 28 08:28:44 dur p

Re: Route incoming @server.example.com to j...@example.com

2012-08-28 Thread Noel Jones
On 8/28/2012 9:46 AM, Ralf Hildebrandt wrote: > * Kenton Brede : >> I've been beating my head on this one. I've got a group who has a >> windows test box and they want all email from that box to go to one >> email address. >> >> What I'd like to do is something like: >> /^From: .*@server1.example.

Re: Route incoming @server.example.com to j...@example.com

2012-08-28 Thread Ralf Hildebrandt
* Kenton Brede : > I've been beating my head on this one. I've got a group who has a > windows test box and they want all email from that box to go to one > email address. > > What I'd like to do is something like: > /^From: .*@server1.example.com/ j...@example.com /^From: .*@server1.example.co

Route incoming @server.example.com to j...@example.com

2012-08-28 Thread Kenton Brede
I've been beating my head on this one. I've got a group who has a windows test box and they want all email from that box to go to one email address. What I'd like to do is something like: /^From: .*@server1.example.com/ j...@example.com So email from server1.example.com is sent to mail.example.

Re: multiple instances of postfix

2012-08-28 Thread Noel Jones
On 8/28/2012 12:57 AM, an...@isac.gov.in wrote: > Dear List, > > right now, in one of my servers, only one instance of postfix is > running. This is already integrated with amavisd-new running on the > same server. > > My question is, if I create another instance of postfix, do I need > to creat

Re: User unknown in local recipient table

2012-08-28 Thread Thufir
On 08/28/2012 06:43 AM, Thufir wrote: I think postfix is mostly, if not totally working. When I send e-mails to the list, they're from thufir@localhost and I'm guessing, but do not know, that it's that address which is not in the local recipient table. Not sure why I didn't think of this befor

User unknown in local recipient table

2012-08-28 Thread Thufir
I think postfix is mostly, if not totally working. When I send e-mails to the list, they're from thufir@localhost and I'm guessing, but do not know, that it's that address which is not in the local recipient table. I, again, ran through the postconf and postmap commands at: https://help.ubunt

Re: high-speed postfix configuration

2012-08-28 Thread Mike
> The first thing that comes to mind is using a ramdisk for the queue directories. > But I'm doubting Postfix will work with queue directories on a ramdisk. Wietse can answer this. There's no reason Postfix won't work with /var/spool/postfix mounted from RAM. The standard filesystem(s) used

Re: status=bounced (user unknown)

2012-08-28 Thread Ralf Hildebrandt
* Thufir : > Like that? Not sure how to see what's in aliases.db, but that seems right. Usually mailman creates that file, whenever you add a list. So maybe the path is completely wrong. Search for the proper location -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - U

Connection refused; status=deferred

2012-08-28 Thread Thufir
Ok, I see that postfix cannot connect to 70.71.113.158 which is my IP. Instead of using that ?external? IP address, shouldn't postfix be using localhost, 127.0.0.1? How can I configure postfix so that, when connecting to dur.bounceme.net, it uses the same IP address as localhost? root@dur:~

Re: status=bounced (user unknown)

2012-08-28 Thread Thufir
On 08/28/2012 04:16 AM, Ralf Hildebrandt wrote: * Thufir: > Aug 28 02:40:57 dur postfix/smtpd[22388]: error: open database > /var/lib/mailman/data/aliases.db: No such file or directory postalias /var/lib/mailman/data/aliases Aha! root@dur:~# root@dur:~# ll /var/lib/mailman/data/ total 32

Re: status=bounced (user unknown)

2012-08-28 Thread Thufir
On 08/28/2012 03:44 AM, Ansgar Wiechers wrote: Please post the output of "postconf -n". Pardon, meant to include this: The relay host looks suspect to my untutored eye. root@dur:~# root@dur:~# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailma

Re: status=bounced (user unknown)

2012-08-28 Thread Thufir
On 08/28/2012 03:44 AM, Ansgar Wiechers wrote: On 2012-08-28 Thufir wrote: > http://askubuntu.com/a/155676/45156 says to remove $mydomain from > > mydestination = $mydomain, localhost.$mydomain, localhost > > but why? As the answer says you should only do that when the host is not supposed

Re: status=bounced (user unknown)

2012-08-28 Thread Ralf Hildebrandt
* Thufir : > Aug 28 02:40:57 dur postfix/smtpd[22388]: error: open database > /var/lib/mailman/data/aliases.db: No such file or directory postalias /var/lib/mailman/data/aliases -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjami

Re: Secondary mail serveur for non local adress

2012-08-28 Thread Ansgar Wiechers
On 2012-08-28 VALOIS, Pascal wrote: > I want to set up a postfix server, who receive mails for domain > @test.fr, with a fallback for unknown adress, where unknown adresses > @devinci.fr will be sent to a secondary serveur. > > i added to my main.cf > > fallback_transport_maps = hash:/etc/mail/tr

Re: status=bounced (user unknown)

2012-08-28 Thread Ansgar Wiechers
On 2012-08-28 Thufir wrote: > http://askubuntu.com/a/155676/45156 says to remove $mydomain from > > mydestination = $mydomain, localhost.$mydomain, localhost > > but why? As the answer says you should only do that when the host is not supposed to be the final destination for $mydomain. > Just a

status=bounced (user unknown)

2012-08-28 Thread Thufir
http://askubuntu.com/a/155676/45156 says to remove $mydomain from mydestination = $mydomain, localhost.$mydomain, localhost but why? Just as anything to @localhost should get spooled to /var/mail/, shouldn't $mydomain similarly get spooled exactly as localhost? Isn't that rather the point, t

Re: receiving spam where sender is @mydomain

2012-08-28 Thread Ilja Beeskow
Am 28.08.2012 04:06, schrieb /dev/rob0: [...] Jan said he wanted to reject mail with From: headers of his domain, and that Return-Path: (the envelope sender) was some other address. Your check_sender_access lookup will be applied against the envelope sender address. I know you are right. But m

Re: postfix mailman transport file missing

2012-08-28 Thread Robert Schetterer
Am 28.08.2012 09:14, schrieb Thufir: > On 08/28/2012 12:06 AM, Robert Schetterer wrote: > [..] >>> what does it mean that the file is missing? > [..] >> nothing >> >> you have to look after a line in master.cf like >> i.e >> >> mailman unix - n n - - pipe >>flag

Secondary mail serveur for non local adress

2012-08-28 Thread VALOIS, Pascal
hello I want to set up a postfix server, who receive mails for domain @test.fr, with a fallback for unknown adress, where unknown adresses @devinci.fr will be sent to a secondary serveur. i added to my main.cf fallback_transport_maps = hash:/etc/mail/transport my transport map containig :

Re: postfix mailman transport file missing

2012-08-28 Thread Thufir
On 08/28/2012 12:06 AM, Robert Schetterer wrote: [..] what does it mean that the file is missing? [..] nothing you have to look after a line in master.cf like i.e mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py

Re: postfix mailman transport file missing

2012-08-28 Thread Robert Schetterer
Am 28.08.2012 09:06, schrieb Robert Schetterer: > Am 28.08.2012 08:24, schrieb Thufir: >> when I installed mailman, I don't see a transport as described here: >> >> Associate the domain lists.example.com to the mailman transport with the >> transport map. Edit the file /etc/postfix/transport: >> >>

Re: postfix mailman transport file missing

2012-08-28 Thread Robert Schetterer
Am 28.08.2012 08:24, schrieb Thufir: > when I installed mailman, I don't see a transport as described here: > > Associate the domain lists.example.com to the mailman transport with the > transport map. Edit the file /etc/postfix/transport: > > lists.example.com mailman: > > https://help.ubu