On Mon, 2012-04-30 at 10:10 +0100, Ishfaq Malik wrote: > Hi > > I'm trying to create a fax to email function. > I'm using asterisk 1.8.7.0 on Centos 5.6 and using mutt to send the > email with an attachment > > Whenever the system command to send the mail is executed, no mail is > sent (have tried using mail as well as mutt) > > When I execute the same command from command line using my own user the > mail and attachment are sent without a problem. > The attachment has asterisk as user and 0644 permissions. The file I'm > using for the body of text has 0777 permissions. > I know system is executing commands as I did a touch command to test it. > > Asterisk is running as user asterisk. > > Is there something obvious that I'm missing? > >
There was something simple that I was missing. The asterisk user hadn't been assigned a valid shell. Used chsh and assigned it /bin/bash and it now works. Ish -- Ishfaq Malik <[email protected]> Department: VOIP Support Company: Packnet Limited t: +44 (0)845 004 4994 f: +44 (0)161 660 9825 e: [email protected] w: http://www.pack-net.co.uk Registered Address: PACKNET LIMITED, 2A ENTERPRISE HOUSE, LLOYD STREET NORTH, MANCHESTER SCIENCE PARK, MANCHESTER, M156SE COMPANY REG NO. 04920552 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
