procmail
[Top] [All Lists]

Just another person short on procmail clues

2006-06-16 09:42:26
I as directly for help, as I have spent a few days already searching and
not getting things working...

I am working with a product called Asterfax:
http://asterfax.sourceforge.net/index.html

Running on Trixbox: http://www.trixbox.org

Trixbox (short for My Asterisk Box) runs sendmail for various thnigs
like mailing voicemails.  Asterfax has its own SMTP server which the
developers admit is lacking.  At:
http://asterfax.sourceforge.net/Configure%20AsterFax%20to%20work%20with%20Sendmail.html
 


they have some help, but not what I want.

I want sendmail, running on the Trixbox/Asterfax box to handle all
mailing needs.  Asterfax.xml allows for configuring an external mailer
(ie not use its own), but instructions are lacking.

Here is what I have and what I need and what did not work...

My server is sip.htt-consult.com
I have a CNAME of fax.htt-consult.com

An email to  TO: num(_at_)fax(_dot_)htt-consult(_dot_)com will use the channel 
defined in
asterfax.xml to route the fax.  If the channel is a ZAP channel, out it
goes over the PSTN, dialing the number provided.  If the channel is a
SIP channel, it will call the number via that SIP channel.

To do this, the incoming mail has to be delivered as separate files into
the directory:  /var/log/spool/asterfax/inbox (typical config).

So I set up a local domain of fax.htt-consult.com and a (global?)
procmail command (in /etc/procmailrc) of:

:0
* ^(To|Cc|Bcc)(_dot_)*(_at_)fax(_dot_)htt-consult(_dot_)com
/var/spool/asterfax/inbox/

Incoming mail to 747(_at_)fax(_dot_)htt-consult(_dot_)com gets rejected as user 
unknown:
747(_at_)sip(_dot_)htt-consult(_dot_)com

So it seems like something in sendmail is changing the address fromm fax
to sip?  And procmail does not get run?

So I take out the local domain entry.  I add to /etc/mail/access:

fax.htt-consult.com OK

and to /etc/mail/mailertable:

fax.htt-consult.com procmail:

Jun 15 17:26:15 sip sendmail[3252]: k5FLQFXX003252:
from=asterisk(_at_)sip(_dot_)htt-consult(_dot_)com 
<mailto:asterisk(_at_)sip(_dot_)htt-consult(_dot_)com>,
size=431, class=0, nrcpts=1, 
msgid=<1150406775(_dot_)3250(_at_)sip(_dot_)htt-consult(_dot_)com
<mailto:1150406775(_dot_)3250(_at_)sip(_dot_)htt-consult(_dot_)com>>, 
relay=root(_at_)localhost
<mailto:root(_at_)localhost>
Jun 15 17:26:15 sip sendmail[3252]: k5FLQFXX003252:
to=747(_at_)fax(_dot_)htt-consult(_dot_)com 
<mailto:747(_at_)fax(_dot_)htt-consult(_dot_)com>,
ctladdr=asterisk(_at_)sip(_dot_)htt-consult(_dot_)com
<mailto:asterisk(_at_)sip(_dot_)htt-consult(_dot_)com> (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]

I do have sendmail listing on 127.0.0.1

tcp        0      0 65.84.78.218:25
0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:25
0.0.0.0:*                   LISTEN

Now I do think I have found one problem with my procmail command,
perhaps iti should be:

myunique = `date +%s`
:0
* ^(To|Cc|Bcc)(_dot_)*(_at_)fax(_dot_)htt-consult(_dot_)com
/var/spool/asterfax/inbox/$myunique

But I don't think that is the problem, or I would be seeing SOMETHING in
/var/spool/asterfax/inbox

So perhaps this is a broader sendmail problem, but why is not procmail
being called, it seems?





____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>