redletterrocko
Programmer
Hi all-
I'm rather new to BSD, but not to the *nix operating system (Debian is my flavor of choice). The former admin of my employer seemed to leave everything halfway done, and so Bugzilla was not emailing. I wrote a sendmail script that I have attached. I then found out that the admin had halfway installed qmail, disabling sendmail, but not really fully enabling qmail. So after fighting with qmail, I deinstalled qmail and installed sendmail (from /usr/ports). The script now works on my gmail account, but not my account at work, which ends in precisiontech.biz. Does anyone have any ideas why?
I'm rather new to BSD, but not to the *nix operating system (Debian is my flavor of choice). The former admin of my employer seemed to leave everything halfway done, and so Bugzilla was not emailing. I wrote a sendmail script that I have attached. I then found out that the admin had halfway installed qmail, disabling sendmail, but not really fully enabling qmail. So after fighting with qmail, I deinstalled qmail and installed sendmail (from /usr/ports). The script now works on my gmail account, but not my account at work, which ends in precisiontech.biz. Does anyone have any ideas why?
Code:
#!/usr/bin/perl
open (MAIL, "|/usr/local/sbin/sendmail -t");
print MAIL "To: phummer\@precisiontech.biz\n";
print MAIL "From: sendmailtestagent\@precisiontech.biz\n";
print MAIL "Subject: Sendmail Test\n";
print MAIL "This is a test of all sendmail functions. This is only a test. This is being sent from planck.precisiontech.biz.\n";
close (MAIL);
print "Message Sent\n";
exit;