Operating System - HP-UX
1833589 Members
4266 Online
110061 Solutions
New Discussion

Any directory that we can put files for the sendmail to pickup

 
SOLVED
Go to solution
Ravi S. Banda
Regular Advisor

Any directory that we can put files for the sendmail to pickup

Hi,
I'm wondering if there's an outbound (like outbox in outlook) directory that we can put our files that gets picked up by sendmail automatically to send out emails.

If so, How do I configure the "TO", "Subject" etc?

Thanks!
Ravi.
4 REPLIES 4
Rick Garland
Honored Contributor
Solution

Re: Any directory that we can put files for the sendmail to pickup

Sendmail works off of files in the /var/spool/mqueue directory. BUT, the files in this directory are generated by sendmail. They come in pairs - a control file and the message file. It will not work to just drop off a file in this directory, you need to have sendmail generate the pairs as specific info is contain in these files.

As for the "TO", "SUBJECT:, etc. this is automatically generated by sendmail when invoked as dictated by the sendmail configuration file.

Steven E. Protter
Exalted Contributor

Re: Any directory that we can put files for the sendmail to pickup

No, I think you are going to have to script that.

I'm attaching a production sendmail script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ravi S. Banda
Regular Advisor

Re: Any directory that we can put files for the sendmail to pickup

Thank you, Steven and Rick.
So, a unix shell script in a cron job would work the BEST for us, then.

Thanks!
Ravi.
HGN
Honored Contributor

Re: Any directory that we can put files for the sendmail to pickup

Hi

If the help from others helped you resolve the issue could you assign the points to people who helped and close this thread

rgds

HGN