I have a sendmail question.
Can someone point me to a list appropriate to get some sendmail.mc help?
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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....
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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:'
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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.
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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@host.FAX
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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@host.FAX
How 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?
Robert Moskowitz wrote:
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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@host.FAX
How do I correct this?
Editing sendmail.cf directly.
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?
I really do not know. I have not been through sendmail mc/cf files in quite a while. Let me see if we can pass parameters via mailertable...
If you could edit the sendmail.cf itself, we could dispense with the mailertables too...
On Thu, Dec 06, 2007 at 01:33:12PM +0800, Christopher Chan wrote:
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@host.FAX
How do I correct this?
Editing sendmail.cf directly.
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?
I really do not know. I have not been through sendmail mc/cf files in quite a while. Let me see if we can pass parameters via mailertable...
If you could edit the sendmail.cf itself, we could dispense with the mailertables too...
I would highly advise against editing the sendmail.cf file directly. Spend a little extra time and install the sendmail-doc package, then consult the file /usr/share/doc/README.cf.
From experience, this will save you LOTS of hassle in the future.
Steven Haigh wrote:
On Thu, Dec 06, 2007 at 01:33:12PM +0800, Christopher Chan wrote:
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@host.FAX
How do I correct this?
Editing sendmail.cf directly.
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?
I really do not know. I have not been through sendmail mc/cf files in quite a while. Let me see if we can pass parameters via mailertable...
If you could edit the sendmail.cf itself, we could dispense with the mailertables too...
I would highly advise against editing the sendmail.cf file directly. Spend a little extra time and install the sendmail-doc package, then consult the file /usr/share/doc/README.cf.
yeah, yeah, tabs and what not...
From experience, this will save you LOTS of hassle in the future.
...
Robert Moskowitz wrote:
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@ext.fax.foo.com and execute:
/usr/bin/faxmail -d user@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@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@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@host.FAX
How 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
I have setup a fax top level domain and done a test. Without the mailertable entries, sending mails to user@ext.fax will work.
Dec 6 14:54:00 faxserver sendmail[5593]: lB66rxLd005591: to=chris@28271017.fax, delay=00:00:01, xdelay=00:00:01, mailer=fax, pri=120520, relay=28271017, dsn=2.0.0, stat=Sent
In your case, you need to either setup fax. and use a forwarding zone/split horizon for your dns cache and setup sendmail accordingly or you have to edit sendmail.cf. The only thing to look for when editing sendmail.cf files is that the left hand side (matching stuff) must be separated from the right hand side (instructions) with a tab. If you do edit, change that FAX to .fax.foo.com. on the LHS and on the RHS @host.fax.foo.com
Robert Moskowitz wrote:
----- 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....
You have to put the host names it is supposed to accept as local (besides the real hostname which it will find by itself) in /etc/mail/local-host-names. And you have to restart sendmail to pick up that change.