Even if it sounds more like a Sendmail configuration problem, than like a Perl problem, I'm interested !
Could you please explain a little more what you're trying to do...
(And give more details than just 'The script doesn't work...')
Parts of your /etc/aliases, /etc/mail/virtusertable,/etc/sendmail.cw
would be useful too....
(I assume 'standard' path, if you're not sure, your sendmail.cf could be handy to locate the files used...)
"Trying to be a SMART lamer" (thanx to Merlyn ;-)
| [reply] |
If what you want to do is send mail, then a good way of doing this (for me, YMMVOC) is the Net::SMTP module. This allows your script to make a real SMTP connection to either the local machine or another mail server.
This has the benefits of:
- You don't need to be co-located with a mail server (but you can be)
- You are independent of platform or installed mail server software (OK, so most Unixlike SMTP MTAs offer a sendmail-like interface, but why not use the protocol?). It doesn't matter if you are talking to an NT box running Exchange or a Unix MTA.
- You can specify cool, useful ESMTP options (ask for a delivery report, etc).
Its easy to use too.
| [reply] |