HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Trying to piece together a email to fax server
Still not communicating. My challenge...
Lee Howard wrote:
Robert Moskowitz wrote:
I thought I knew how to do this, but the more I did, the less Iknew.
So I threw everything out and started reading again.
It seems the practice is to use the rfc822 format of:
user@xxxxxxxxxxxxxxxxx
I think that you mean "user@xxxxxxxxxx" (no domain). It's one way. I
have seen lots of people use number@xxxxxxxxxxx
My domain foo.com, my mail server where I have my POP account is
mail.foo.com and Asterisk and Hylafax are on sip.foo.com
So I want to send a fax to John@222
I compose and email and address it to john@xxxxxxxxxxxxxxx
My POP client delivers the mail to mail.foo.com which has to figure out
where to deliver mail addressed to the FQDN of 222.fax.foo.com
You say, hey, just put it in the forwarding info in the Sendmail on
mail.foo.com; well that works for me but not george over at bar.com How
is his mail server, mail.bar.com suppose to figure out where to send the
mail addessed to 222.fax.foo.com
This is where the DNS entries come in. Generally, using a wildcard in
DNS is *BAD*, but this is exactly the type of addressing problem that it
was designed to solve.
So, yes I need the DNS entries. Unless the feature is restricted to
mail clients of mail.foo.com
The goal is to send the fax to phone number 'number' and have it
identified as for 'user'.
E-mail so versatile that the user can be in quotes, even... "Your
Name" <number@xxxxxxxxxx>... but it depends on how you're going to use
it. Since you seem to be following faxmail below then you should
probably start by sticking with the user@xxxxxxxxxx approach, yes.
Will faxmail not be able to parse the example and then bounce the
message back to the sender? And with what error message?
This requires first using a DNS mx record with a wildcard. So you
would have to two DNS records:
fax.domain. IN A 1.2.3.4
*.fax.domain. IN MX 10,fax.domain.
No... it's an SMTP thing only. You configure the SMTP to send all
.fax to faxmail.
No. See above. I **DID** X.400 routing tables. I am not going to get
sucked into that again!
Then to your sendmail.mc add:
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 didn't double-check this, but yes, it looks familiar.
But there is no comment on where these are to be in the sendmail.mc
file.
I'm not sure that it matters. I usually put it with the other
similar-looking things, but I'm not sure that it matters.
I figure if it goes after the spamassassin entry, things will work as
desired.
but is this right? You want to run a script for processing the
mail? Is the above enough? what of the script at:
http://www.hylafax.org/site2//howto/clients/mailfax
Ignore this. It'll just confuse you.
It sure did!
And what of spamassassin? You want it to trash spam, not try to fax
it. How do you get spamassassin to run first. Also some of the
other spammer tools (if the from address is invalid reject, can't
remember right now that tool).
Well, this is the exercise for you to work on. In theory your SMTP
MTA/MDA shouldn't be handing the fax off to faxmail if it's not
supposed to. So if it's spam then you have an upstream problem with
the MTA/MDA. *But* if you need to filter within your mail-to-fax
scripting itself, then you can easily replace faxmail with your own
scripting. See:
If I relay the mail through mail.foo.com (via the DNS entry of:
*.fax.foo.com IN MX 10, mail.foo.com), then it SHOULD be the case that
all the spam filtering on mail.foo.com will willow out the spam.
http://hylafax.sourceforge.net/howto/faxing.php#ss5.4
Thanks for the pointer.
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*