<?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>email | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/email/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>Setup Sendmail Smart Relay in FreeBSD</title>
		<link>https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Thu, 09 Sep 2010 04:11:00 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[sendmail]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1049</guid>

					<description><![CDATA[<p>It&#8217;s good that to route all your outgoing email to a relay server for centralize management. Compiling Sendmail&#8217;s Smart Relay options in FreeBSD is slightly different from Linux machine. But it&#8217;s fairly easy to do so. Just follow the steps...</p>
The post <a href="https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php">Setup Sendmail Smart Relay in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f.jpg"><img fetchpriority="high" decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f-300x199.jpg" alt="" title="349574996_ffd563b65f" width="300" height="199" class="alignleft size-medium wp-image-1050" srcset="https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f-300x199.jpg 300w, https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f.jpg 500w" sizes="(max-width: 300px) 100vw, 300px" /></a>It&#8217;s good that to route all your outgoing email to a relay server for centralize management. Compiling Sendmail&#8217;s Smart Relay options in FreeBSD is slightly different from Linux machine. But it&#8217;s fairly easy to do so. Just follow the steps below, and I assume you already have your own email relay server to relay to. </p>
<p>Go to /etc/mail<br />
run &#8220;make&#8221; command for the first time to generate &#8220;yourdomain&#8221;.cf and &#8220;yourdomain&#8221;.submit.cf / &#8220;yourdomain&#8221;.mc and &#8220;yourdomain&#8221;.submit.mc file</p>
<pre>
<code>
shell> cd /etc/mail
shell> make
shell> cp freebsd.mc "yourhostname".mc
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 "yourhostname".mc > "yourhostname".cf
cp freebsd.submit.mc "yourhostname".submit.mc
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 "yourhostname".submit.mc > "yourhostname"submit.cf
</code>
</pre>
<p>After mc and mf files have generated. Edit <yourdomain>.mc file, look for line below. Change the SMART HOST to your email server&#8217;s hostname. It must be hostname and you CAN&#8217;T configure IP Address for SMART HOST.</p>
<pre>
<code>
shell> vi "yourdomain".mc

dnl define(`SMART_HOST', `your.isp.mail.server')
define(`SMART_HOST', `relay.server.hostname')
</code>
</pre>
<p>Next copy &#8220;define(`SMART_HOST&#8217;, `relay.server.hostname&#8217;)&#8221; and paste it in &#8220;yourhostname&#8221;.submit.mc. It must be placed before the line of &#8220;msp&#8221; feature. </p>
<pre>
<code>
define(`SMART_HOST', `relay.server.hostname')
FEATURE(`msp', `[127.0.0.1]')dnl
</pre>
<p></code></p>
<p>After configuration has been made, now run "make install" to generate the cf file and replace sendmail.cf and submit.cf </p>
<pre>
<code>
shell> make install
shell> /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 "yourhostname".mc >  "yourhostname".cf
install -m 444  "yourhostname".cf /etc/mail/sendmail.cf
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4  "yourhostname".submit.mc >  "yourhostname".submit.cf
install -m 444 iyot.time.com.my.submit.cf /etc/mail/submit.cf
</pre>
<p></code></p>
<p>You are basically done, now. Just restart sendmail services. </p>
<pre>
<code>
shell> /etc/rc.d/sendmail restart
shell> Cannot 'restart' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.
Stopping sendmail_submit.
Waiting for PIDS: 64903.
</code>
</pre>
<p>Ignore the line to change sendmail_enable to YES if your server just do email submit and it doesn't act as incoming email.</p>The post <a href="https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php">Setup Sendmail Smart Relay in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Disabled Sendmail Service on FreeBSD</title>
		<link>https://logs.paulooi.com/disabled-sendmail-service-on-freebsd.php</link>
					<comments>https://logs.paulooi.com/disabled-sendmail-service-on-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 14 May 2010 01:31:38 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=970</guid>

					<description><![CDATA[<p>Disabled Sendmail Service on FreeBSD is slightly different compare to Linux. We usually disabled Sendmail Service and configure exim on FreeBSD. Sendmail service can be disabled via /etc/rc.conf. Put these lines into /etc/rc.conf sendmail_enable="NONE" After that restart sendmail service /etc/rc.d/sendmail...</p>
The post <a href="https://logs.paulooi.com/disabled-sendmail-service-on-freebsd.php">Disabled Sendmail Service on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Disabled Sendmail Service on FreeBSD is slightly different compare to Linux. We usually disabled Sendmail Service and configure exim on FreeBSD. Sendmail service can be disabled via /etc/rc.conf. </p>
<p>Put these lines into /etc/rc.conf</p>
<pre>
<code>
sendmail_enable="NONE" 
</code>
</pre>
<p>After that restart sendmail service </p>
<pre>
<code>
/etc/rc.d/sendmail restart
</code>
</pre>
<p>If you would like sendmail to be able to host outgoing email. Put these lines in /etc/rc.conf</p>
<pre>
<code>
sendmail_enable="NO" 
</code>
</pre>
<p>After that restart sendmail service </p>
<pre>
<code>
/etc/rc.d/sendmail restart
</code>
</pre>The post <a href="https://logs.paulooi.com/disabled-sendmail-service-on-freebsd.php">Disabled Sendmail Service on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/disabled-sendmail-service-on-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
