Showing posts with label email. Show all posts
Showing posts with label email. Show all posts

Tuesday, August 05, 2014

bugs

you sometimes settle to live with them. :)


i have the email icon on my android displaying (-1) notification for a couple of months now. noticed, but not bothered. i just check my email when it doesn't display (-1). haha

Thursday, April 04, 2013

php: send email through gmail via mail

1. setup php and include mail:
this is how i did it on my linux box
# yum install php-pear
# pear install --alldeps Mail-1.2.0

2. to use mail in php:
// email settings
require_once "Mail.php";
$username = "<gmail email address here>@gmail.com";
$password = "<gmail email password here>";
$from = "<gmail email address here>@gmail.com";
$host = "ssl://smtp.gmail.com";
$port = "465";

$headers = array(
'From' => $from,
'To' => $to,
'Subject' => $subject
);

$smtp = Mail::factory(
'smtp',
array(
'host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password
)
);

$mail = $smtp->send($to, $headers, $message);

if(PEAR::isError($mail))
{
$resultstring = "email sending error: " . $mail->getMessage();
}
else
{
$resultstring = "email sent to $to";
}

Wednesday, July 20, 2011

qmail: adjust maximum recipient limit

do you get a "Your message did not reach some or all of the intended recipients. 550 5.7.0 Maximum Recipient Limit Exceeded" message when sending email to a large number of recipients?


here's how to adjust maximum recipient limit:
1. edit tcp.smtp
# vi /etc/tcprules.d/tcp.smtp
look for CHKUSER_RCPTLIMIT="25"
this setting has a 25 maximum recipient limit. adjust as you prefer


2. apply your preferred maximum recipient limit
# tcprules /etc/tcprules.d/tcp.smtp.cdb /etc/tcprules.d/tcp.smtp.tmp < /etc/tcprules.d/tcp.smtp


i had mine set to not more than a hundred recipients to prevent users from spam-sending

Wednesday, July 13, 2011

zimbra: pushing banned contents in email

got BANNED CONTENTS ALERT from zimbra's content checker after receiving an .exe file in email. it is a great email security feature that blocks unwanted contents, but what if you are expecting the banned content?

you can push the email manually from the shell!

1. take note of the internal reference code of your email (highlighted below):


your blocked email should be /opt/zimbra/data/amavisd/quarantine/banned-<reference code>

2. manually push it by issuing:
$ /opt/zimbra/bin/zmlmtpinject -s <source email> /opt/zimbra/data/amavisd/quarantine/banned-<reference code> -r <recipient email>

then wait for it in your inbox ;)

source: http://blog.jeshurun.ca/technology/zimbra-recovering-blocked-emails-and-attachments
credits: Zimbra user forums users ewilen and rsharpe

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...