sean darcy
2008-Dec-20  02:24 UTC
[asterisk-users] Setup ReceiveFax(), fax2mail, mime-construct - but now Sendmail :(
Using 1.6 on Fedora Core 9 I'm trying to receive faxes. I've got this
far:
[incoming-fax]
exten => 
s,1,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-0${CALLERIDNUM})
exten => s,2,ReceiveFAX(${FAXFILE}.tif)
exten => s,3,Hangup()
exten=>h,1,System(/usr/local/bin/fax2mail --cid-number
"0${CALLERIDNUM}"
--cid-name "home fax" --dest-name "admin"  --dest-email
"${admin_email}"
-f  "${FAXFILE}")
which all seems work well on the CLI. No errors.
fax2mail uses mime-contruct to send the fax by sendmail. That didn't work.
No email. /var/log/maillog:
Dec 19 21:04:53 asterisk sendmail[2628]: mBH2mWvQ006043: 
to=<admin at myco.com>, ctladdr=<root at localhost.localdomain>
(0/0),
delay=2+23:16:09, xdelay=00:00:00, mailer=esmtp, pri=6640305, 
relay=mx01.1and1.com., dsn=4.0.0, stat=Deferred: Connection timed out 
with mx01.1and1.com.
Dec 19 21:04:53 asterisk sendmail[2628]: mBH2mWvS006043: 
to=<admin at myco.com>, ctladdr=<root at localhost.localdomain>
(0/0),
delay=2+23:16:09, xdelay=00:00:00, mailer=esmtp, pri=6640312, 
relay=mx00.1and1.com., dsn=4.0.0, stat=Deferred: Connection timed out 
with mx00.1and1.com.
I've avoided MTA's like sendmail for a _long_ time. So I need help.
1. Is this the right list to try to resolve this? If not, which list?
2. postfix seems to considered much easier to configure than sendmail. 
Do I install postfix? If so, will this work out of the box?
3. If sendmail, what's the magic configuration?
sean
Anthony Messina
2008-Dec-20  02:47 UTC
[asterisk-users] Setup ReceiveFax(), fax2mail, mime-construct - but now Sendmail :(
On Friday 19 December 2008 20:24:11 sean darcy wrote:> Using 1.6 on Fedora Core 9 I'm trying to receive faxes. I've got this far: > > [incoming-fax] > exten => > s,1,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-0 >${CALLERIDNUM}) exten => s,2,ReceiveFAX(${FAXFILE}.tif) > exten => s,3,Hangup() > exten=>h,1,System(/usr/local/bin/fax2mail --cid-number "0${CALLERIDNUM}" > --cid-name "home fax" --dest-name "admin" --dest-email "${admin_email}" > -f "${FAXFILE}") > > which all seems work well on the CLI. No errors. > > fax2mail uses mime-contruct to send the fax by sendmail. That didn't work. > > No email. /var/log/maillog: > > Dec 19 21:04:53 asterisk sendmail[2628]: mBH2mWvQ006043: > to=<admin at myco.com>, ctladdr=<root at localhost.localdomain> (0/0), > delay=2+23:16:09, xdelay=00:00:00, mailer=esmtp, pri=6640305, > relay=mx01.1and1.com., dsn=4.0.0, stat=Deferred: Connection timed out > with mx01.1and1.com. > Dec 19 21:04:53 asterisk sendmail[2628]: mBH2mWvS006043: > to=<admin at myco.com>, ctladdr=<root at localhost.localdomain> (0/0), > delay=2+23:16:09, xdelay=00:00:00, mailer=esmtp, pri=6640312, > relay=mx00.1and1.com., dsn=4.0.0, stat=Deferred: Connection timed out > with mx00.1and1.com. > > I've avoided MTA's like sendmail for a _long_ time. So I need help. > > 1. Is this the right list to try to resolve this? If not, which list? > > 2. postfix seems to considered much easier to configure than sendmail. > Do I install postfix? If so, will this work out of the box? > > 3. If sendmail, what's the magic configuration? >i'm still working on this, but take a look at http://messinet.com/viewvc/asterisk-fax-gw/trunk/ currently, i use postfix, which seems easier to me to configure than sendmail -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20081219/9fc1a977/attachment.pgp
Andrew Thomas
2008-Dec-22  09:33 UTC
[asterisk-users] Setup ReceiveFax(), fax2mail, mime-construct - but now Sendmail :(
You don't really need to use any local MTA if you use the sendEmail
script.
I got it from - http://www.caspian.dotconf.net/menu/Software/SendEmail/
This actually works by 'talking' directly to any SMTP server - even
remote ones (I use our Exchange server for our e-mails).
HTH
Andy
	  	
-->>  -----Original Message-----
-->>  From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-
-->>  bounces at lists.digium.com] On Behalf Of Anthony Messina
-->>  Sent: 20 December 2008 02:47
-->>  To: Asterisk Users Mailing List - Non-Commercial Discussion
-->>  Subject: Re: [asterisk-users] Setup ReceiveFax(), fax2mail,mime-
-->>  construct - but now Sendmail :(
-->>  
-->>  On Friday 19 December 2008 20:24:11 sean darcy wrote:
-->>  > Using 1.6 on Fedora Core 9 I'm trying to receive faxes.
I've got
-->>  this far:
-->>  >
-->>  > [incoming-fax]
-->>  > exten =>
-->>  >
-->>
s,1,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},,%Y%m%d%H%
-->>  M)}-0
-->>  >${CALLERIDNUM}) exten => s,2,ReceiveFAX(${FAXFILE}.tif)
-->>  > exten => s,3,Hangup()
-->>  > exten=>h,1,System(/usr/local/bin/fax2mail --cid-number
-->>  "0${CALLERIDNUM}"
-->>  > --cid-name "home fax" --dest-name "admin" 
--dest-email
-->>  "${admin_email}"
-->>  > -f  "${FAXFILE}")
-->>  >
-->>  > which all seems work well on the CLI. No errors.
-->>  >
-->>  > fax2mail uses mime-contruct to send the fax by sendmail. That
didn't
-->>  work.
-->>  >
-->>  > No email. /var/log/maillog:
-->>  >
-->>  > Dec 19 21:04:53 asterisk sendmail[2628]: mBH2mWvQ006043:
-->>  > to=<admin at myco.com>, ctladdr=<root at
localhost.localdomain> (0/0),
-->>  > delay=2+23:16:09, xdelay=00:00:00, mailer=esmtp, pri=6640305,
-->>  > relay=mx01.1and1.com., dsn=4.0.0, stat=Deferred: Connection
timed
-->>  out
-->>  > with mx01.1and1.com.
-->>  > Dec 19 21:04:53 asterisk sendmail[2628]: mBH2mWvS006043:
-->>  > to=<admin at myco.com>, ctladdr=<root at
localhost.localdomain> (0/0),
-->>  > delay=2+23:16:09, xdelay=00:00:00, mailer=esmtp, pri=6640312,
-->>  > relay=mx00.1and1.com., dsn=4.0.0, stat=Deferred: Connection
timed
-->>  out
-->>  > with mx00.1and1.com.
-->>  >
-->>  > I've avoided MTA's like sendmail for a _long_ time. So
I need
help.
-->>  >
-->>  > 1. Is this the right list to try to resolve this? If not, which
-->>  list?
-->>  >
-->>  > 2. postfix seems to considered much easier to configure than
-->>  sendmail.
-->>  > Do I install postfix? If so, will this work out of the box?
-->>  >
-->>  > 3. If sendmail, what's the magic configuration?
-->>  >
-->>  
-->>  i'm still working on this, but take a look at
-->>  http://messinet.com/viewvc/asterisk-fax-gw/trunk/
-->>  
-->>  currently, i use postfix, which seems easier to me to configure
than
-->>  sendmail
-->>  
-->>  --
-->>  Anthony - http://messinet.com -
http://messinet.com/~amessina/gallery
-->>  8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E