<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Windows System Administrator Help &#187; AtMail</title>
	<atom:link href="http://linuxwindowsmaster.com/tag/atmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Wed, 15 Feb 2012 17:58:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Mail cannot be sent through AtMail error &#8220;Could not send message to SMTP server. Check you have access to send messages via the server and that all To/CC/BCC addresses are valid\nError: SMTP Server rejected email. Returned:553&#8243;</title>
		<link>http://linuxwindowsmaster.com/mail-cannot-be-sent-through-atmail-error-could-not-send-message-to-smtp-server-check-you-have-access-to-send-messages-via-the-server-and-that-all-toccbcc-addresses-are-validnerror-smtp-server/</link>
		<comments>http://linuxwindowsmaster.com/mail-cannot-be-sent-through-atmail-error-could-not-send-message-to-smtp-server-check-you-have-access-to-send-messages-via-the-server-and-that-all-toccbcc-addresses-are-validnerror-smtp-server/#comments</comments>
		<pubDate>Sun, 16 May 2010 14:37:16 +0000</pubDate>
		<dc:creator>AlexP</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[AtMail]]></category>
		<category><![CDATA[Mail cannot be sent through AtMail]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=371</guid>
		<description><![CDATA[Emails cannot be sent through AtMail. When click Send Mail popup window is created with the following message: Could not send message to SMTP server. Check that you have access to send messages via the server and that all To/CC/BCC addresses are valid\nError: SMTP Server rejected mail. Returned:553 What may cause the problem? Solutions : [...]]]></description>
			<content:encoded><![CDATA[<p>Emails cannot be sent through AtMail. When click Send Mail popup window is created with the following message:</p>
<blockquote><p><strong>Could not send message to SMTP server. Check that you have access to send messages via the server and that all To/CC/BCC addresses are valid\nError: SMTP Server rejected mail. Returned:553 </strong></p></blockquote>
<p>What may cause the problem?</p>
<p><strong>Solutions :</strong></p>
<p>Seemed like atmail didn&#8217;t authenticate when trying to send the email. After searching through the sources found that in the @mail config file (/var/www/atmail/libs/Atmail/Config.php) there is an option to authenticate with an username/password</p>
<p><strong><br />
<blockquote>&#8216;smtpauth_password&#8217; => &#8221;,<br />
&#8216;smtpauth_username&#8217; => &#8221;,</p></blockquote>
<p></strong></p>
<p>by default they&#8217;re empty.<br />
if you put here a valid username and password, the messages will be sent.<br />
The problem is that I wanted that the users authenticate with their own credentials when sending messages.</p>
<p>So here&#8217;s the way I fixed it:</p>
<p>Open the file<strong> /var/www/atmail/libs/Atmail/SendMsg.php</strong></p>
<p>Search for the line <strong>&#8220;// Optionally authenticate with the SMTP server&#8221;</strong></p>
<p>Add below line :<br />
<strong><br />
<blockquote>$auth =&#038; $atmail->getAuthObj();<br />
$pref['smtpauth_username'] = $auth->Account;<br />
$pref['smtpauth_password'] = $auth->password;</p></blockquote>
<p></strong></p>
<p>That&#8217;s it. This will override the auth settings from Config.php with the credentials the user used to log in.</p>
<p>After that try to send an email it will work.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/mail-cannot-be-sent-through-atmail-error-could-not-send-message-to-smtp-server-check-you-have-access-to-send-messages-via-the-server-and-that-all-toccbcc-addresses-are-validnerror-smtp-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

