Re: Sendmail without MX records
At 09:20 AM 8/12/2000 -0700, you wrote: At 03:38 AM 8/1/00 EDT, you wrote: YOu NEED A MX record for outside mail or have a host file with every IP's and domain in the internet. Having a host file with all ip's is only marginally good ... only machines with mx records are known smtp transports. What I've chosen to do here is make use of specific channel routing by using the mailertable feature but I can't remember if it's even available in an older version of sendmail like Max is running. My /etc/mail/mailertable looks like this ... n7xss.heber.ampr.org smtp:[44.124.34.66] heber.ampr.org smtp:[44.124.34.36] lksd.ampr.orgsmtp:[44.124.32.4] ... these are the only smtp gateways within radiopath of my home qth (n7xss91). The square brackets mean "don't use MX records, specifically use this IP address". My linux box here is an internet gateway so all other destination addresses will do a DNS lookup for the MX record and follow a path via the internet interface ... if there *is* another node within my route to ax0 (the packet radio interface of course) and his DNS MX record is a 44.124.x.x number and *not* in my mailertable sendmail will try to use that address to deliver ... but success will depend entirely on the radio path. Bottom line is that I put the machines that I know are running a smtp port and I know I have a good radio path to get there, in my mailertable and bypass DNX MX records. -- -= Brad Fisher =- I'm just internet: [EMAIL PROTECTED] a packet: [EMAIL PROTECTED]wanna be UNIX guru! Sendmail has supported mailertables since near the beggining of time. But ANYONE who is connected to the net with anything larger than a shoe string should be sure to run the latest versions of sendmail. (8.11.x currently) due to the number of known security risks in older versions. Relay control should certainly be implemented in the configuration to avoid the system from being abused by the spammers. Besides, the newer versions are faster and more stable, offer more options, easier to install and configure too. Rich Hall - http://www.netlynx.com/rich emailto:[EMAIL PROTECTED] amateur radio: KF6ARX
Re: Sendmail without MX records
At 03:38 AM 8/1/00 EDT, you wrote: YOu NEED A MX record for outside mail or have a host file with every IP's and domain in the internet. Having a host file with all ip's is only marginally good ... only machines with mx records are known smtp transports. What I've chosen to do here is make use of specific channel routing by using the mailertable feature but I can't remember if it's even available in an older version of sendmail like Max is running. My /etc/mail/mailertable looks like this ... n7xss.heber.ampr.org smtp:[44.124.34.66] heber.ampr.org smtp:[44.124.34.36] lksd.ampr.orgsmtp:[44.124.32.4] ... these are the only smtp gateways within radiopath of my home qth (n7xss91). The square brackets mean "don't use MX records, specifically use this IP address". My linux box here is an internet gateway so all other destination addresses will do a DNS lookup for the MX record and follow a path via the internet interface ... if there *is* another node within my route to ax0 (the packet radio interface of course) and his DNS MX record is a 44.124.x.x number and *not* in my mailertable sendmail will try to use that address to deliver ... but success will depend entirely on the radio path. Bottom line is that I put the machines that I know are running a smtp port and I know I have a good radio path to get there, in my mailertable and bypass DNX MX records. -- -= Brad Fisher =- I'm just internet: [EMAIL PROTECTED] a packet: [EMAIL PROTECTED]wanna be UNIX guru!
Re: Sendmail without MX records
Max wrote: Anyone have any ideas to make sendmail work without MX records, but still use DNS ?, I'm sure other amprnet sites must have come up with a solution. Once upon a time, sendmail would automaticaly fall back to A records when no MX were present. My (old) O'Reilly Sendmail book indicates that behavior is not configurable (it should always happen). I don't know when sendmail stopped behaving that way, because I switched to qmail ( http://www.qmail.org ) several years ago. A quick test here shows that qmail still tries A records where MX are not available. Define your local hub as your "smarthost". Your sendmail then knows it only has to deliver to the "smarthost" not attempt to deliver to either the final destination or an MX defined host. If you use the M4 macro method of building sendmail.cf then add: define(`SMART_HOST', `smtp:smart host name')dnl into your M4 configuration definition file. This of course assumes (dangerous) the local hub is a "smarthost". This is how I have configured sendmail here. External bound mail is delivered to my ISP and the ISP mail hub does the rest. -- Regards Richard ~~~ My opinions are mine, all mine. None to spare for unopinionated masses. This message comes from a WinTel free zone. CPU = Cyrix, OS = Linux. ~~~
Re: Sendmail without MX records
YOu NEED A MX record for outside mail or have a host file with every IP's and domain in the internet.
Re: Sendmail without MX records
Max wrote: Anyone have any ideas to make sendmail work without MX records, but still use DNS ?, I'm sure other amprnet sites must have come up with a solution. Once upon a time, sendmail would automaticaly fall back to A records when no MX were present. My (old) O'Reilly Sendmail book indicates that behavior is not configurable (it should always happen). I don't know when sendmail stopped behaving that way, because I switched to qmail ( http://www.qmail.org ) several years ago. A quick test here shows that qmail still tries A records where MX are not available. -jh