Re: reject mail without valid MX

2009-07-12 Thread Sahil Tandon
On Sun, 12 Jul 2009, Noel Jones wrote: > Keld Jørn Simonsen wrote: >> But I would like to try out seeing what effect rejecting mail without a >> MX RR wil have. Can I do that in postfix, possibly by specifying >> something in the file for check_sender_mx_access . I did google for it. > > No, postf

Re: reject mail without valid MX

2009-07-12 Thread Noel Jones
Wolfgang Zeikat wrote: Anyway: IMHO, a "valid" MX record should be a fully qualified domain name (FQDN) which would contain at least two characters from the alphabet [a-z] in the top level domain at the end of the record. So maybe you could use a regexp table to check for those: !/[a-z][a-z]$/

Re: reject mail without valid MX

2009-07-12 Thread Noel Jones
Keld Jørn Simonsen wrote: But I would like to try out seeing what effect rejecting mail without a MX RR wil have. Can I do that in postfix, possibly by specifying something in the file for check_sender_mx_access . I did google for it. No, postfix has no built-in function for this. You can use

Re: reject mail without valid MX

2009-07-12 Thread Keld Jørn Simonsen
On Sun, Jul 12, 2009 at 09:14:53PM +0200, Ralf Hildebrandt wrote: > * Keld Jørn Simonsen : > > On Sun, Jul 12, 2009 at 05:45:37PM +0200, Ralf Hildebrandt wrote: > > > * Keld Jørn Simonsen : > > > > Hi > > > > > > > > I am fooling around with my postfix, and I wanted to reject mail without > > > >

Re: reject mail without valid MX

2009-07-12 Thread Ralf Hildebrandt
* Keld Jørn Simonsen : > On Sun, Jul 12, 2009 at 05:45:37PM +0200, Ralf Hildebrandt wrote: > > * Keld Jørn Simonsen : > > > Hi > > > > > > I am fooling around with my postfix, and I wanted to reject mail without > > > a valid MX record. How to do that? > > > > reject_unknown_sender_domain > > Th

Re: reject mail without valid MX

2009-07-12 Thread J.D. Bronson
Keld Jørn Simonsen wrote: On Sun, Jul 12, 2009 at 05:45:37PM +0200, Ralf Hildebrandt wrote: * Keld Jørn Simonsen : Hi I am fooling around with my postfix, and I wanted to reject mail without a valid MX record. How to do that? reject_unknown_sender_domain Maybe this idea??? %cat mx_access

Re: reject mail without valid MX

2009-07-12 Thread Keld Jørn Simonsen
On Sun, Jul 12, 2009 at 05:45:37PM +0200, Ralf Hildebrandt wrote: > * Keld Jørn Simonsen : > > Hi > > > > I am fooling around with my postfix, and I wanted to reject mail without > > a valid MX record. How to do that? > > reject_unknown_sender_domain That does not reject mail, if the A record is

Re: reject mail without valid MX

2009-07-12 Thread Ralf Hildebrandt
* Keld Jørn Simonsen : > Hi > > I am fooling around with my postfix, and I wanted to reject mail without > a valid MX record. How to do that? reject_unknown_sender_domain -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Fran

Re: reject mail without valid MX

2009-07-12 Thread Benny Pedersen
On Sun, July 12, 2009 11:52, Keld Jørn Simonsen wrote: > Yes it is understood that the RFCs do not require MX for mail. > But how many legitimate mails do not have MX? stats are stats, show me the logs :) mx is not a requirement, a will do reject_unknown_sender_domain will test both imho -- x

Re: reject mail without valid MX

2009-07-12 Thread Wolfgang Zeikat
Keld Jørn Simonsen wrote: I am fooling around with my postfix, and I wanted to reject mail without a valid MX record. How to do that? Don't do that. MX records are not required, and you will reject legitimate email. That sounds reasonable. Yes it is understood that the RFCs do not require M

Re: reject mail without valid MX

2009-07-12 Thread Keld Jørn Simonsen
On Sun, Jul 12, 2009 at 12:09:15PM +0200, Magnus Bäck wrote: > On Sunday, July 12, 2009 at 11:52 CEST, > Keld Jørn Simonsen wrote: > > > On Sun, Jul 12, 2009 at 11:41:51AM +0200, Magnus Bäck wrote: > > > > > Don't do that. MX records are not required, and you will reject > > > legitimate ema

Re: reject mail without valid MX

2009-07-12 Thread Magnus Bäck
On Sunday, July 12, 2009 at 11:52 CEST, Keld Jørn Simonsen wrote: > On Sun, Jul 12, 2009 at 11:41:51AM +0200, Magnus Bäck wrote: > > > Don't do that. MX records are not required, and you will reject > > legitimate email. If the MX record isn't present, an MTA should > > use the A record. >

Re: reject mail without valid MX

2009-07-12 Thread Keld Jørn Simonsen
On Sun, Jul 12, 2009 at 11:41:51AM +0200, Magnus Bäck wrote: > On Sunday, July 12, 2009 at 11:37 CEST, > Keld Jørn Simonsen wrote: > > > I am fooling around with my postfix, and I wanted to reject mail > > without a valid MX record. How to do that? > > Don't do that. MX records are not requ

Re: reject mail without valid MX

2009-07-12 Thread Magnus Bäck
On Sunday, July 12, 2009 at 11:37 CEST, Keld Jørn Simonsen wrote: > I am fooling around with my postfix, and I wanted to reject mail > without a valid MX record. How to do that? Don't do that. MX records are not required, and you will reject legitimate email. If the MX record isn't present,

reject mail without valid MX

2009-07-12 Thread Keld Jørn Simonsen
Hi I am fooling around with my postfix, and I wanted to reject mail without a valid MX record. How to do that? I tried smtpd_sender_restrictions = check_sender_mx_access cidr:/etc/postfix/mxaccess With a file /etc/postfix/mxaccess having the following contents: 64.94.110/24REJECT Verisi