|
From: Robert M. <rg...@ht...> - 2006-06-16 11:38:57
|
Marcos Rubinstein wrote: > I'm lost... I was checking Asterfax homepage > (http://asterfax.sourceforge.net), and it seems to me that it works as an > smtp-like daemon!... > Thanks Marcos. Yes Asterfax has its own smtp daemon that they admit is not too secure. They tell you how to run it with sendmail on the same system by eating up another IP address. I did this already. But I am saying, forget that, why not just use Sendmail. Afterall the asterfax.xml has an External option for inbound mail. > also... > > if you create a user "receivedfaxes" and use procmail in > /home/receivedfaxes perhaps it will be easier to trackdown the problem.... > I will run through your recommendations below. Should be able to follow your recipe. I assume that I can set receivedfaxes to not allow login... > you could do: > > add the user receivedfaxes > > using virtusertable make any mail received for fax.htt-consult.com go to > receivedfaxes > > create something like this in /home/receivedfaxes > > su receivedfaxes > > cat >> /home/receivedfaxes/.procmailrc > LOGFILE=pmlog > LOGABSTRACT=all > VERBOSE=on > > myunique = `date +%s` > :0: > /var/spool/asterfax/inbox/$myunique > > (control+D) > > be sure that receivedfaxes can write to /var/spool/asterfax/inbox/ > > (you can make the user receivedfaxes with the same group than the one you > see in /var/spool/asterfax/inbox ) > > Cheers! > Marcos > > On Thu, 15 Jun 2006, Robert Moskowitz wrote: > > >> Bit off topic, but I want to use Webmin to set up the procmail filter. >> >> I am ASSuMing I have procmail installed. There are some things in my M4 >> configuration for sendmail that seems to indicate this. >> >> Now I am setting up Asterfax. Asterfax wants incoming faxs to be >> deposited in a directory like: >> >> /var/spool/asterfax/inbox >> >> My host is sip.htt-consult.com. I want mail for fax.htt-consult.com to >> go into the asterfax inbox directory. >> >> first I set up a CNAME for fax.domain.com >> Then I add a local domain to sendmail of fax.htt-consult.com >> >> and a procmail entry of >> >> :0 >> * ^(To|Cc|Bcc).*@fax.htt-consult.com >> /var/spool/asterfax/inbox/ >> >> (created with Webmin add new filter action) >> >> I send an email to 74...@fa... >> >> and I see in /var/log/maillog that the to get rewritten to >> 74...@si... and there is no user 747. Message is rejected. >> >> Jun 15 17:16:51 sip sendmail[3172]: k5FLGpeM003172: >> <74...@si...>... User unknown >> Jun 15 17:16:51 sip sendmail[3172]: k5FLGpeM003172: >> from=<rg...@ht...>, size=974, class=0, nrcpts=0, proto=ESMTP, >> daemon=MTA, relay=[65.84.78.211] >> >> So local domain is not the answer. >> >> Then I try domain routing (mailertable). I create the entry: >> >> fax.htt-consult.com procmail: >> >> and spam control (access) >> >> fax.htt-consult.com OK >> >> seems good. But maillog says: >> >> Jun 15 17:26:15 sip sendmail[3252]: k5FLQFXX003252: >> fro...@si..., size=431, class=0, nrcpts=1, >> msgid=<115...@si...>, relay=root@localhost >> Jun 15 17:26:15 sip sendmail[3252]: k5FLQFXX003252: >> to...@fa..., ctl...@si... >> (100/101), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30431, >> relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection >> refused by [127.0.0.1] >> >> >> Oh, since there is a user asterisk on this system, I am using Webmins >> user mail to send the test messages discussed above. >> >> I can't figure out what sendmail did with the message when it got the >> connection refused.... >> >> Oh, I switched to Thunderbird mail from Eudora and still shaking things >> out... >> >> >> >> >> >> >> - >> Forwarded by the Webmin mailing list at web...@li... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> > > > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > |