<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Sysadmin Blog</title>
		<link>http://www.cyberbyte.ch/blog/index.php</link>
		<description><![CDATA[Copyright Cyberbyte Networks]]></description>
		<copyright>Copyright 2026, Mike Rhyner</copyright>
		<managingEditor>info@cyberbyte.ch (Mike Rhyner)</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.8.1</generator>
		<item>
			<title>Test SMTP Auth</title>
			<link>http://www.cyberbyte.ch/blog/index.php?entry=entry150924-190707</link>
			<description><![CDATA[Sometimes, you need to test SMTP auth (for sending e-mails) is working properly and you don&#039;t want (or can&#039;t) test with an ordinary email client.<br /><br />One can test using a telnet session. But first, you must encode username and password using this command snipplet:<br /><pre>echo -en &quot;testlogin&quot; | openssl enc -base64<br />dGVzdGxvZ2lu<br />echo -en &quot;testpass&quot; | openssl enc -base64<br />dGVzdHBhc3M=</pre><br />Then:<br /><pre>telnet &lt;your_server_address&gt; 25 (or 587)<br /></pre><br />Now you do the same as an e-mail client:<br /><pre>HELO mybox.mydomain.tld<br />250 host.domain.tld<br />AUTH LOGIN<br />334 VXNlcm5hbWU6<br />dGVzdGxvZ2lu<br />334 UGFzc3dvcmQ6<br />dGVzdHBhc3M=<br />235 2.7.0 Authentication successful<br />quit<br />221 2.0.0 Bye</pre><br />If something with &quot;Authentication successful&quot; appears, login was able to authenticate against the mail server for sending e-mail.<br /><br />REMARK: There are some other sites with examples in perl that don&#039;t work with full e-mail address usernames (user@domain.tld) because of lack of escaping the &quot;@&quot; sign that designates a perl array.]]></description>
			<category>Mail stuff</category>
			<guid isPermaLink="true">http://www.cyberbyte.ch/blog/index.php?entry=entry150924-190707</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Thu, 24 Sep 2015 17:07:07 GMT</pubDate>
			<comments>http://www.cyberbyte.ch/blog/comments.php?y=15&amp;m=09&amp;entry=entry150924-190707</comments>
		</item>
		<item>
			<title>Detect and block abuse of (cracked) e-mail account</title>
			<link>http://www.cyberbyte.ch/blog/index.php?entry=entry140228-104539</link>
			<description><![CDATA[To avoid bad things(TM) caused by a cracked e-mail account on our postfix mailserver, I used the script <a href="http://sourceforge.net/projects/checkauthlog/files/check_auth_log-2.0.0.tgz/download?use_mirror=switch" >Check Auth Log</a> to detect abnormal high numbers of logins or logins from many different IP addresses within a certain time onto a certain account. Then the script will lock out the account. This, together with per-session limits within postfix configuration (smtpd_client_message_rate_limit, smtpd_client_recipient_rate_limit), should help to avoid or at least mitigate the damage caused by cracked accounts, i.e. SMTP server being blacklisted.<br />]]></description>
			<category>Postfix Stuff, Mail stuff</category>
			<guid isPermaLink="true">http://www.cyberbyte.ch/blog/index.php?entry=entry140228-104539</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Fri, 28 Feb 2014 09:45:39 GMT</pubDate>
			<comments>http://www.cyberbyte.ch/blog/comments.php?y=14&amp;m=02&amp;entry=entry140228-104539</comments>
		</item>
		<item>
			<title>Obsolete Mail Domain Reporter</title>
			<link>http://www.cyberbyte.ch/blog/index.php?entry=entry130221-151414</link>
			<description><![CDATA[<h2>Introduction</h2><br />The abbreviation &quot;OMDR&quot; stands for &quot;obsolete mail domain reporter&quot; and is a small shell script intended to find obsolete MX records to keep your mailserver clean and sane<br /><br />As a source of currently configured domain can be either<br />* a textfile, every hosted domain on a seperate line<br />* a directory tree with the domains<br /><br /><h2>Download</h2><br />Get the script <a href="http://www.cyberbyte.ch/Linux/mail/omdr.tar.gz" >here</a><br /><br /><h2>Usage</h2><br />1. Copy the shell script to your mail server<br /><br />2. Open the script within an text editor. There are several configuration options at the beginning of the script to adapt the script to your environment. See comment within the script itself!<br /><br />3. After running the script, you end up with a file that contains all domains that are claimed not to be active any more on that particular mail host<br /><br /><h2>Copyright</h2><br />This script was written by Mike Rhyner for Adfinis Sygroup AG.<br />]]></description>
			<category>Mail stuff</category>
			<guid isPermaLink="true">http://www.cyberbyte.ch/blog/index.php?entry=entry130221-151414</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Thu, 21 Feb 2013 14:14:14 GMT</pubDate>
			<comments>http://www.cyberbyte.ch/blog/comments.php?y=13&amp;m=02&amp;entry=entry130221-151414</comments>
		</item>
		<item>
			<title>Postfix Mail Queue Manager</title>
			<link>http://www.cyberbyte.ch/blog/index.php?entry=entry120929-000000</link>
			<description><![CDATA[<h2>Description</h2><br />This PHP script shows the content of the mail queues of multiple servers and give you the possibility to hold, release, delete and reqeue single messages. <br /><br />If you install a tiny wrapper script on mail servers, you may even remove or requeue multiple messages from a certain sender.<br /><br />In addition, you can also requeue all messages (<code>sendmail -q</code>).<br /><br /><h2>Download</h2><br />Download the <a href="http://www.cyberbyte.ch/Linux/mail/mailqmgr.tar.gz" >gzip&#039;ped tar archive</a><br /><br /><h2>Prerequisites:</h2><br />On a web- or intranet accessible host (access protection highly recommended!):<br />- Web Server with PHP script language support (<code>shell_exec</code> function has to be enabled)<br />- Key-based SSH access to mail servers for webserver user<br /><br />On mail servers:<br />- Postfix<br />- sudo<br /><br /><h2>Installation</h2><br />    Unpack the archive beneath a webserver document root<br /><br />    Adapt the variables $mailservers and $user to your needs, if you like to use the selection by sender e-mail address feature, configure also variable $wrapper_cmd<br /><br />    Add the following lines to <code>/etc/sudoers</code> on the mail server(s), assuming user <code>admin</code> for login to the mail server(s) (change it to your needs):<br /><br /><pre>admin    ALL=(ALL) NOPASSWD: /usr/sbin/postsuper<br />admin    ALL=(ALL) NOPASSWD: /usr/sbin/postqueue<br />admin    ALL=(ALL) NOPASSWD: /usr/local/bin/mailqueue.sh</pre>(last line only needed for selection by sender address)<br /><br />    If you want to use the selection by e-mail address feature, put mailqueue.sh to some path on the mail server(s) and make it executable, e.g.:<br /><pre>cp mailqueue.sh /usr/local/bin/mailqueue.sh<br />chmod 755 /usr/local/bin/mailqueue.sh</pre><br />    Try it out using <code>http://yourwebserver/mailqmgr/index.php</code>]]></description>
			<category>Tools &amp; more, Postfix Stuff, Mail stuff</category>
			<guid isPermaLink="true">http://www.cyberbyte.ch/blog/index.php?entry=entry120929-000000</guid>
			<author>info@cyberbyte.ch (Mike Rhyner)</author>
			<pubDate>Fri, 28 Sep 2012 22:00:00 GMT</pubDate>
			<comments>http://www.cyberbyte.ch/blog/comments.php?y=12&amp;m=09&amp;entry=entry120929-000000</comments>
		</item>
	</channel>
</rss>
