Usually, you do not need to setup an email server under Linux desktop operating system. Most GUI email clients (such as Thunderbird) supports Gmail POP3 and IMAP configurations. But, how do you send mail via the standard or /usr/bin/mail user agents or a shell script? Programs such as sendmail / postfix / exim can be configured as a gmail smarthost but they are largely overkill for this use.
You can use gmail as a smart host to send all messages from your Linux / UNIX desktop systems. You need to use a simple program called ssmtp. It accepts a mail stream on standard input with recipients specified on the command line and synchronously forwards the message to the mail transfer agent of a mailhub for the mailhub MTA to process. Failed messages are placed in dead.letter in the sender’s home directory.
Read the rest of this entry
We talked about some of the benefits of setting up an email server in Linux and how you can use python to send email. Now we are going to look at how you can send email from Perl.
The Code
use Net::SMTP::TLS;
my $mailer = new Net::SMTP::TLS(
‘smtp.gmail.com’,
Hello => ‘smtp.gmail.com’,
Port => 587,
User => ‘username’,
Password=> ‘password’);
$mailer->mail(‘from@domain.com’);
$mailer->to(‘to@domain.com’);
$mailer->data;
$mailer->datasend(“Sent from perl!”);
$mailer->dataend;
$mailer->quit;
Edit /etc/dovecot.conf, find:
mechanisms = plain
Add after:
Read the rest of this entry
I’ve just installed this plugin, I have wp-smtp-mail plugin installed as well. The test thing on the plugin works, however I receive an error when trying to utilize the actual contact form.
The error it self is:
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function.
http://wordpress.org/extend/plugins/si-contact-form/
solution:
Read the rest of this entry
The script found on the following site http://bashcurescancer.com
The a script is called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu.
Read the rest of this entry