<?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>smtp | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/smtp/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Thu, 27 Jan 2011 01:14:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Exim: Restrict Authenticated Outgoing Email with Sender Domain</title>
		<link>https://logs.paulooi.com/exim-restrict-authenticated-outgoing-email-with-sender-domain.php</link>
					<comments>https://logs.paulooi.com/exim-restrict-authenticated-outgoing-email-with-sender-domain.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Thu, 27 Jan 2011 01:13:00 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[outgoing email]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[systems]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1382</guid>

					<description><![CDATA[<p>Most of the outgoing SMTP server allowed the user to set different sender email address once it is authenticated. But we might be in risk for allowing the user to send outgoing bulk/spam email via authenticated SMTP with different sender...</p>
The post <a href="https://logs.paulooi.com/exim-restrict-authenticated-outgoing-email-with-sender-domain.php">Exim: Restrict Authenticated Outgoing Email with Sender Domain</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Most of the outgoing SMTP server allowed the user to set different sender email address once it is authenticated. But we might be in risk for allowing the user to send outgoing bulk/spam email via authenticated SMTP with different sender email address. </p>
<p>In Exim mail MTA, it can restricts at the SMTP authenticated transport.</p>
<pre>
<code>
accept  authenticated = *
          sender_domains = < the_domain_name_1 > : < the_domain_name_2 >  
          control       = submission
          control       = dkim_disable_verify
</code>
</pre>
<p>Usually local_domains is the list of the domain hosted on Exim mail server, it can be configured as below too. </p>
<pre>
<code>
accept  authenticated = *
          sender_domains = +local_domains
          control       = submission
          control       = dkim_disable_verify
</code>
</pre>The post <a href="https://logs.paulooi.com/exim-restrict-authenticated-outgoing-email-with-sender-domain.php">Exim: Restrict Authenticated Outgoing Email with Sender Domain</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/exim-restrict-authenticated-outgoing-email-with-sender-domain.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>exim, playing with mail queue in server</title>
		<link>https://logs.paulooi.com/exim-playing-with-mail-queue-in-server.php</link>
					<comments>https://logs.paulooi.com/exim-playing-with-mail-queue-in-server.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Mon, 21 Jul 2008 06:05:11 +0000</pubDate>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[queue email]]></category>
		<category><![CDATA[smtp]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=215</guid>

					<description><![CDATA[<p>there are over thousand emails queue in our mail server, even though I have configured email frozen more than 10 days automatically delete/remove, but it seem like doesn&#8217;t work as expected. here is the work around if you plan to...</p>
The post <a href="https://logs.paulooi.com/exim-playing-with-mail-queue-in-server.php">exim, playing with mail queue in server</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>there are over thousand emails queue in our mail server, even though I have configured email frozen more than 10 days automatically delete/remove, but it seem like doesn&#8217;t work as expected.</p>
<p>here is the work around if you plan to do it manually.</p>
<p>start with listing email queue in the server, by using the command exim -bp, it will list all the email currently queue in the server. but my only concern is frozen email in the server, which I would like to manually clean it from the queue. let try something here, </p>
<p><em>exim -bp | grep frozen</p>
<p> 18d   24K 1JhiI4-00096B-OW <> *** frozen ***<br />
 18d  2.3K 1JhiII-00097Y-8s <> *** frozen ***<br />
 16d  2.8K 1JhiKM-0009AL-9M <> *** frozen ***<br />
 15d  2.3K 1JhiLO-0009Bs-EF <> *** frozen ***<br />
 15d  2.5K 1JhiLS-0009Bx-O2 <> *** frozen ***<br />
 12d  2.7K 1JhiNm-0009S5-AQ <> *** frozen ***<br />
 10d  3.3K 1JhiPv-0009aN-Vu <> *** frozen ***<br />
 10d   24K 1JhiQ9-0009as-4R <> *** frozen ***</em></p>
<p>There are the emails currently queue in the server, and now you might want to check why did the email was queue in the server by <em>exim -Mvl <id></em></p>
<p><em>2008-04-02 15:58:52 Received from <> H=(xxx.xxx.net) [202.76.234.132] P=esmtp S=2143 id=20080402075613.8287E22E8BB@xxx.xxx.net<br />
2008-04-02 15:58:52 routing failed for rsvundet_2002@xxxx.com.my: User account not exist<br />
*** Frozen (delivery error message)</em></p>
<p>If you want to remove all the email from queue more than 18 days, try this command;</p>
<p><em>exim -bp | grep 18d | awk &#8216;{ print $3 }&#8217; | xargs exim -Mrm </p>
<p>Message 1JhiI4-00096B-OW has been removed<br />
Message 1JhiII-00097Y-8s has been removed<br />
Message 1JhiKM-0009AL-9M has been removed<br />
Message 1JhiLO-0009Bs-EF has been removed<br />
Message 1JhiLS-0009Bx-O2 has been removed<br />
Message 1JhiNm-0009S5-AQ has been removed</em></p>
<p>some usefull queue commands:</p>
<p>-bp : Queue email in Server<br />
-bpc : Count Queue email in Server<br />
-M : Force delivery<br />
-Mar : Add recipient<br />
-Meb : Edit message body<br />
-Mes : Edit sender<br />
-Mf : Freeze message<br />
-Mg : Give up (and bounce message)<br />
-Mmad : Mark all recipients as delivered<br />
-Mmd : Mark recipient as delivered<br />
-Mrm : Remove message (no bounce)<br />
-Mt : Thaw message<br />
-Mvb : View message body<br />
-Mvh : View message header<br />
-Mvl : View message log</p>
<p>enjoy and happy cleaning queue email!</p>
<h2>Links</h2>
<p><a href="http://bradthemad.org/tech/notes/exim_cheatsheet.php" target="_blank">Exim Cheat Sheet</a> by <a href="http://bradthemad.org/tech/notes/exim_cheatsheet.php" target="_blank">bratthemad</a><br />
Last update: 20080721</p>The post <a href="https://logs.paulooi.com/exim-playing-with-mail-queue-in-server.php">exim, playing with mail queue in server</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/exim-playing-with-mail-queue-in-server.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
