<?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>SteveOH &#187; mail server</title>
	<atom:link href="http://www.steve-oh.com/blog/index.php/tag/mail-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.steve-oh.com/blog</link>
	<description>Steve O Hernandez - Technology, Real Life, Advice</description>
	<lastBuildDate>Fri, 07 May 2010 18:13:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding multiple users to Ubuntu e-mail Server using a script</title>
		<link>http://www.steve-oh.com/blog/index.php/adding-multiple-users-to-ubuntu-e-mail-server-using-a-script/</link>
		<comments>http://www.steve-oh.com/blog/index.php/adding-multiple-users-to-ubuntu-e-mail-server-using-a-script/#comments</comments>
		<pubDate>Sat, 16 May 2009 16:17:11 +0000</pubDate>
		<dc:creator>Steve Hernandez</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.steve-oh.com/blog/?p=226</guid>
		<description><![CDATA[These two scripts are very important for the system admin who regularly works with mail servers and somehow forgets to backup his system username and password! Let’s say somehow we lost the usernames and passwords of the mail server. In this case the admin has to manually create all the users and then change the [...]]]></description>
			<content:encoded><![CDATA[<p>These two scripts are very important for the system admin who regularly works with mail servers and somehow forgets to backup his system username and password! Let’s say somehow we lost the usernames and passwords of the mail server. In this case the admin has to manually create all the users and then change the passwords for all the users. Tedious job. Let’s make our life easier.</p>
<p>First create a file which contains all the user name. Something like this:</p>
<p><code><em>nurealam<br />
nayeem<br />
mrahman<br />
farid<br />
rubi<br />
sankar</em></code></p>
<p>Save the file as <span class="system">userlist.txt</span>. Now create the following bash file:</p>
<p><code><em>#!/bin/sh<br />
for i in `more userlist.txt `<br />
do<br />
echo $i<br />
adduser $i<br />
done</em></code></p>
<p>Save the file and exit.</p>
<p class="command"><em>chmod 755 userlist.txt</em></p>
<p>Now run the file:</p>
<p class="command"><em>./userlist.txt</em></p>
<p>This will add all the users to the system. Now we have to change the passwords. Let’s say we want <span class="system">username123</span> as password. So for user <span class="system">nayeem</span> the password will be<span class="system">nayeem123</span>, <span class="system">rubi123</span> for user <span class="system">rubi</span> and so on.</p>
<p>Create another bash file as follows:</p>
<p><code><em>#!/bin/sh<br />
for i in `more userlist.txt `<br />
do<br />
echo $i<br />
echo $i"123" | passwd –-stdin "$i"<br />
echo; echo "User $username’s password changed!"<br />
done</em></code></p>
<p>Run the file. All the passwords are changed.</p>
<p>If you want to force all your users to change password, use the following code:</p>
<p>Force all your users to change their passwords because the temporary password is a security risk</p>
<p><code><em>#!/bin/sh<br />
for i in `more userlist.txt `<br />
do<br />
echo $i<br />
echo $i | change -d 0 "$i"<br />
echo; echo "User $i will be forced to change password on next login!"<br />
done</em></code></p>
<p>I then log as that user and see this</p>
<p><em>WARNING: Your password has expired.<br />
You must change your password now and login again!<br />
Changing password for user amcorona.<br />
Changing password for amcorona<br />
(current) UNIX password:</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.steve-oh.com/blog/index.php/adding-multiple-users-to-ubuntu-e-mail-server-using-a-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu Mail Server &#8211; PostFix, DoveCot, RoundCube Authentication Error</title>
		<link>http://www.steve-oh.com/blog/index.php/ubuntu-mail-server-postfix-dovecot-roundcube-authentication-error/</link>
		<comments>http://www.steve-oh.com/blog/index.php/ubuntu-mail-server-postfix-dovecot-roundcube-authentication-error/#comments</comments>
		<pubDate>Mon, 11 May 2009 15:55:30 +0000</pubDate>
		<dc:creator>Steve Hernandez</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[SteveOH]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.steve-oh.com/blog/?p=220</guid>
		<description><![CDATA[I&#8217;ve been dealing with this error for the past 2 weeks, trying to authenticate to my IMAP Mail Server (dovecot) over SSL (SASL).  I continuously received errors for IMAP authentication.  AtMailOpen did not work (and I cannot get it to authenticate correctly).  So I tried RoundCube, which looks like a good mesh [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been dealing with this error for the past 2 weeks, trying to authenticate to my IMAP Mail Server (dovecot) over SSL (SASL).  I continuously received errors for IMAP authentication.  AtMailOpen did not work (and I cannot get it to authenticate correctly).  So I tried RoundCube, which looks like a good mesh of functionality and aesthetics.</p>
<p>RoundCube installed great &#8211; easy and straight forward.  Here is the error I received:</p>
<p><strong>IMAP Error: </strong>Authentication for steveoh@thelambdas.com failed (LOGIN): &#8220;a001 NO Authentication failed.&#8221;</p>
<p><strong>Warning: </strong>Cannot modify header information &#8211; headers already sent in <strong>/var/www/webmail/program/include/rcmail.php</strong> on line <strong>951</strong></p>
<p>There is very little to no solutions out there.  So I had to play with the configuration file and each argument, one by one (file: <strong>main.inc.php</strong> in the config directory).</p>
<p>Leave the username_domain field blank.  My server, apparently, doesn&#8217;t require the full email address, only the user name, for authentication.</p>
<p><strong>From:<br />
</strong>$rcmail_config['username_domain'] = &#8216;example.com&#8217;;</p>
<p><strong>To:<br />
</strong>$rcmail_config['username_domain'] = &#8221;;</p>
<p>This solved the problem, and I&#8217;m able to log in using ONLY the user name (ie. username, not username@example.com).</p>
<p>Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steve-oh.com/blog/index.php/ubuntu-mail-server-postfix-dovecot-roundcube-authentication-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
