I have a sendmail question. Can someone point me to a list appropriate to get some sendmail.mc help?
On Wed, 2007-12-05 at 21:44 -0500, Robert Moskowitz wrote:> I have a sendmail question. > > Can someone point me to a list appropriate to get some sendmail.mc help?---- try here first Craig
Robert Moskowitz wrote:> I have a sendmail question. > > Can someone point me to a list appropriate to get some sendmail.mc help? >The only I know is on news...you get access it on google groups. comp.mail.sendmail
Craig White wrote:> On Wed, 2007-12-05 at 21:44 -0500, Robert Moskowitz wrote: > >> I have a sendmail question. >> >> Can someone point me to a list appropriate to get some sendmail.mc help? >> > ---- > try here firstMy fax server (fax.foo.com) is suppose to receive mail to: user at ext.fax.foo.com and execute: /usr/bin/faxmail -d user at ext I found the following items to add to sendmail.mc: define(`FAX_MAILER_PATH',`/usr/bin/faxmail')dnl define(`FAX_MAILER_ARGS',`faxmail -d -n -p 12pt $u@$h $f')dnl MAILER(`fax')dnl I have set up DNS with a pseudo domain: sip.foo.com. IN A 192.168.1.100 fax.foo.com. IN A 192.168.1.100 *.fax.foo.com. IN MX 10 fax.foo.com nslookup shows this to work, and in fact my POP mail server does try to send mail addessed: to: joe at 222.fax.foo.com To fax.foo.com, that gets sent back to me with the error information: ----- The following addresses had permanent fatal errors ----- <joe at 222.fax.foo.com> ----- Transcript of session follows ----- 554 5.0.0 MX list for 222.fax.foo.com. points back to sip.foo.com 554 5.3.5 Local configuration error sendmail is NOT suppose to try to relay; it is suppose to accept this for local delivery, and not do a DNS lookup on 222.fax.foo.com.... So obviously I need more sendmail help. Then I will have to set it up via webmin.... It is interesting that when you ask this question directly on the Hylafax mail list, either no one answers, or point you to URLs that give partial answers. I know that DNS can act strange with 2 A records to the same address. That is what CNAME is suppose to be for. Now that I see that I am not expecting email to sip.foo.com, I could make that the cname. Of course the host name is sip.foo.com with fax a service on it....
replies-lists-a1z2-centos at listmail.innovate.net wrote:> do you have "fax.foo.com" in /etc/mail/local-host-names ? if not that > name won't be seen as local and sendmail on 192.168.1.100 will try to > relay mail to that fqdn (that's directed to it due the the dns entry). >welll,,,,,, fax.foo.com is. But 222.fax.foo.com is not. Nor is sales.fax.foo.com or 2342.fax.foo.com, etc. the design here is that the fax server will dial an extension and on the header page indicate the fax is for user (user at ext.fax.foo.com). This is what all the documentation points to. The arg for faxmail is: -d user at ext> - Rick > > > ------------ Original Message ------------ > >> Date: Wednesday, December 05, 2007 10:44:58 PM -0500 >> From: Robert Moskowitz <rgm at htt-consult.com> >> To: CentOS mailing list <centos at centos.org> >> Subject: Re: [CentOS] Need a sendmail help mail list >> >> Craig White wrote: >> >>> On Wed, 2007-12-05 at 21:44 -0500, Robert Moskowitz wrote: >>> >>> >>>> I have a sendmail question. >>>> >>>> Can someone point me to a list appropriate to get some >>>> sendmail.mc help? >>>> >>>> >>> ---- >>> try here first >>> >> My fax server (fax.foo.com) is suppose to receive mail to: >> user at ext.fax.foo.com and execute: >> >> /usr/bin/faxmail -d user at ext >> >> I found the following items to add to sendmail.mc: >> >> define(`FAX_MAILER_PATH',`/usr/bin/faxmail')dnl >> define(`FAX_MAILER_ARGS',`faxmail -d -n -p 12pt $u@$h $f')dnl >> MAILER(`fax')dnl >> >> >> I have set up DNS with a pseudo domain: >> >> sip.foo.com. IN A 192.168.1.100 >> fax.foo.com. IN A 192.168.1.100 >> *.fax.foo.com. IN MX 10 fax.foo.com >> >> >> >> nslookup shows this to work, and in fact my POP mail server does >> try to send mail addessed: >> >> to: joe at 222.fax.foo.com >> >> To fax.foo.com, that gets sent back to me with the error >> information: >> >> >> ----- The following addresses had permanent fatal errors ----- >> <joe at 222.fax.foo.com> >> >> ----- Transcript of session follows ----- >> 554 5.0.0 MX list for 222.fax.foo.com. points back to sip.foo.com >> 554 5.3.5 Local configuration error >> >> sendmail is NOT suppose to try to relay; it is suppose to accept >> this for local delivery, and not do a DNS lookup on >> 222.fax.foo.com.... >> >> So obviously I need more sendmail help. Then I will have to set it >> up via webmin.... >> >> >> It is interesting that when you ask this question directly on the >> Hylafax mail list, either no one answers, or point you to URLs that >> give partial answers. >> >> >> I know that DNS can act strange with 2 A records to the same >> address. That is what CNAME is suppose to be for. Now that I see >> that I am not expecting email to sip.foo.com, I could make that the >> cname. Of course the host name is sip.foo.com with fax a service >> on it.... >> >> > ---------- End Original Message ---------- > > >
Christopher Chan wrote:> Robert Moskowitz wrote: >> Craig White wrote: >>> On Wed, 2007-12-05 at 21:44 -0500, Robert Moskowitz wrote: >>> >>>> I have a sendmail question. >>>> >>>> Can someone point me to a list appropriate to get some sendmail.mc >>>> help? >>> ---- >>> try here first >> >> My fax server (fax.foo.com) is suppose to receive mail to: >> user at ext.fax.foo.com and execute: >> >> /usr/bin/faxmail -d user at ext >> >> I found the following items to add to sendmail.mc: >> >> define(`FAX_MAILER_PATH',`/usr/bin/faxmail')dnl >> define(`FAX_MAILER_ARGS',`faxmail -d -n -p 12pt $u@$h $f')dnl >> MAILER(`fax')dnl >> >> >> I have set up DNS with a pseudo domain: >> >> sip.foo.com. IN A 192.168.1.100 >> fax.foo.com. IN A 192.168.1.100 >> *.fax.foo.com. IN MX 10 fax.foo.com >> >> >> >> nslookup shows this to work, and in fact my POP mail server does try >> to send mail addessed: >> >> to: joe at 222.fax.foo.com >> >> To fax.foo.com, that gets sent back to me with the error information: >> >> >> ----- The following addresses had permanent fatal errors ----- >> <joe at 222.fax.foo.com> >> >> ----- Transcript of session follows ----- >> 554 5.0.0 MX list for 222.fax.foo.com. points back to sip.foo.com >> 554 5.3.5 Local configuration error >> >> sendmail is NOT suppose to try to relay; it is suppose to accept this >> for local delivery, and not do a DNS lookup on 222.fax.foo.com.... >> >> So obviously I need more sendmail help. Then I will have to set it up >> via webmin.... > > Via webmin? > > Try adding the below to mailertable and then running > makemap hash mailertable < mailertable... > '*.fax.foo.com fax:' >ALL RIGHT!!!! Yes, in webmin, I edited the mailertable.... :) Then I noticed an a Deliver to: Hylafax option in the Domain Routing screen. It produces the same entry. But not delivering the proper arguments to faxmail as you indicate in your next message.
Christopher Chan wrote:> Robert Moskowitz wrote: >> Craig White wrote: >>> On Wed, 2007-12-05 at 21:44 -0500, Robert Moskowitz wrote: >>> >>>> I have a sendmail question. >>>> >>>> Can someone point me to a list appropriate to get some sendmail.mc >>>> help? >>> ---- >>> try here first >> >> My fax server (fax.foo.com) is suppose to receive mail to: >> user at ext.fax.foo.com and execute: >> >> /usr/bin/faxmail -d user at ext >> >> I found the following items to add to sendmail.mc: >> >> define(`FAX_MAILER_PATH',`/usr/bin/faxmail')dnl >> define(`FAX_MAILER_ARGS',`faxmail -d -n -p 12pt $u@$h $f')dnl >> MAILER(`fax')dnl >> >> >> I have set up DNS with a pseudo domain: >> >> sip.foo.com. IN A 192.168.1.100 >> fax.foo.com. IN A 192.168.1.100 >> *.fax.foo.com. IN MX 10 fax.foo.com >> >> >> >> nslookup shows this to work, and in fact my POP mail server does try >> to send mail addessed: >> >> to: joe at 222.fax.foo.com >> >> To fax.foo.com, that gets sent back to me with the error information: >> >> >> ----- The following addresses had permanent fatal errors ----- >> <joe at 222.fax.foo.com> >> >> ----- Transcript of session follows ----- >> 554 5.0.0 MX list for 222.fax.foo.com. points back to sip.foo.com >> 554 5.3.5 Local configuration error >> >> sendmail is NOT suppose to try to relay; it is suppose to accept this >> for local delivery, and not do a DNS lookup on 222.fax.foo.com.... >> >> So obviously I need more sendmail help. Then I will have to set it up >> via webmin.... >> > > The ruleset in the cf file that calls the fax mailer expects the > domain portion to be ext.fax and not ext.fax.foo.com. The rule looks > for anything .FAX. > > # resolve fake top level domains by forwarding to other hosts > R$+ < @ $+ .FAX. > $#fax $@ $2 $: $1 user at host.FAXHow do I correct this? sendmail.mc:define(`FAX_MAILER_PATH',`/usr/bin/faxmail')dnl sendmail.mc:define(`FAX_MAILER_ARGS',`faxmail -d -n -p 12pt $u@$h $f')dnl sendmail.mc:MAILER(`fax')dnl Where did that ruleset come from? And what should I use in the ARGS in place of $h to get just the host portion of the FQDN?