Search Site:

About

Linux

Printers?

Programming

Windows?

Download

Skins

Edit - To Do - AllRecentChanges

Recent Changes Printable View Page History Edit Page

EmailServer.TroubleShooting History

Hide minor edits - Show changes to markup

Monday 04 May 2009, at 05:48 GMT+8 by 192.168.0.101 -
Changed line 60 from:
to:
Wednesday 21 December 2005, at 12:58 GMT+8 by Renaud -
Changed lines 57-58 from:
to:

Friday 22 July 2005, at 10:39 GMT+8 by Renaud -
Changed lines 59-60 from:
to:
Friday 22 July 2005, at 10:38 GMT+8 by Renaud -
Changed lines 59-60 from:
to:
Sunday 10 July 2005, at 06:59 GMT+8 by Renaud -
Added line 25:
Sunday 10 July 2005, at 06:59 GMT+8 by Renaud -
Deleted lines 7-12:

(:noteblock:) Testing your Authentication Config (:notecontent:) This section was inspired from the very complete book Postfix: the Definitive Guide from O'Reilly. Highly reommended! (:noteblockend:)

Added lines 20-24:

(:noteblock:) Testing your Authentication Config (:notecontent:) This section was inspired from the very complete book Postfix: the Definitive Guide from O'Reilly. Highly reommended! (:noteblockend:)

Sunday 10 July 2005, at 06:58 GMT+8 by Renaud -
Added lines 8-13:

(:noteblock:) Testing your Authentication Config (:notecontent:) This section was inspired from the very complete book Postfix: the Definitive Guide from O'Reilly. Highly reommended! (:noteblockend:)

Deleted lines 25-29:

(:noteblock:) Testing your Authentication Config (:notecontent:) This section was inspired from the very complete book Postfix: the Definitive Guide from O'Reilly. Highly reommended! (:noteblockend:)

Sunday 10 July 2005, at 06:57 GMT+8 by Renaud -
Deleted lines 5-9:

(:noteblock:) Testing your Authentication Config (:notecontent:) The script in this section was lifted from the very complete book Postfix: the Definitive Guide from O'Reilly. (:noteblockend:)

Added lines 20-24:

(:noteblock:) Testing your Authentication Config (:notecontent:) This section was inspired from the very complete book Postfix: the Definitive Guide from O'Reilly. Highly reommended! (:noteblockend:)

Sunday 10 July 2005, at 06:54 GMT+8 by Renaud -
Added line 1:
Sunday 10 July 2005, at 06:24 GMT+8 by Renaud -
Changed lines 57-58 from:
to:
Sunday 10 July 2005, at 05:55 GMT+8 by Renaud -
Changed lines 57-58 from:
to:
Sunday 10 July 2005, at 05:55 GMT+8 by Renaud -
Changed lines 1-4 from:

Troubleshooting SASL authentication

to:

This page is part of the EmailServer article.

Troubleshooting SASL authentication

Deleted lines 53-57:

This page is part of the EmailServer article.

SpamAssassin

...ToDo...

Sunday 10 July 2005, at 05:54 GMT+8 by Renaud -
Added lines 1-61:

Troubleshooting SASL authentication

(:noteblock:) Testing your Authentication Config (:notecontent:) The script in this section was lifted from the very complete book Postfix: the Definitive Guide from O'Reilly. (:noteblockend:) To ensure that your authentication process works fine, we'll check what the server reports when we try to feed it a correct login.

Since logins are base64 encoded, copy and paste the following in a file that you call encode_sasl_plain.pl (don't forget to chmod 755 to make it executable): (:source lang=Perl:)

  1. !/usr/bin/perl

use strict; use MIME::Base64; if ( $#ARGV != 1 ) {

   die "Usage: encode_sasl_plain.pl <username> <password>\n";

} print encode_base64("$ARGV[0]\0$ARGV[0]\0$ARGV[1]"); exit 0; (:sourcend:)

Then use it to encode a username/password pair as it would be expected by the mail server for authentication. Here I use the existing administrator user (the account must exist on the system):

(:source:)

  1. encode_sasl_plain.pl administrator 123456

YWRtaW5pc3RyYXRvcgBhZG1pbmlzdHJhdG9yADEyMzQ1Ng== (:sourcend:)

Then, talk to your mail server manually: (:source linenum:)

  1. telnet localhost 25

Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 mail.example.com ESMTP MyOwnPostOffice EHLO test.faraway.com 250-mail.example.com 250-PIPELINING 250-SIZE 20971520 250-VRFY 250-ETRN 250-AUTH LOGIN DIGEST-MD5 PLAIN CRAM-MD5 250-AUTH=LOGIN DIGEST-MD5 PLAIN CRAM-MD5 250 8BITMIME AUTH PLAIN YWRtaW5pc3RyYXRvcgBhZG1pbmlzdHJhdG9yADEyMzQ1Ng== 235 Authentication successful quit 221 Bye Connection closed by foreign host. (:sourcend:) The only lines you will need to type are 6, 15, 17. The others are the server's responses. This page is part of the EmailServer article.

SpamAssassin

...ToDo...

< MboxMaildirMigration | EmailServer]] >

(:comments:)

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - Search - RSS -
Page last modified on Monday 04 May 2009, at 05:48 GMT+8 - Viewed 2241 times