550 authentication required

johnallen

Verified User
Joined
Sep 23, 2003
Messages
47
Location
minneapolis
Squirrelmail on a fresh install of DirectAdmin provides the following error when you try to send mail.

ERROR:
Requested action not taken: mailbox unavailable
Server replied: 550 authentication required

This is on a Red Hat Linux server.
 
Hello,

Not too sure. Check the exim logs (/var/log/exim/*) and make sure that 127.0.01 is in the relay_hosts.

John
 
The problem is that squirrelmail is not by default setup to handle virtual domains. What I did to get it to work was to comment out the $domain in the squirrelmail/config/config.php file and add the following:
Code:
$domain=$_SERVER['HTTP_HOST'];
while (sizeof(explode('.', $domain)) > 2) {
   $domain = substr($domain, strpos($domain, '.') + 1);
}

/* $domain                 = 'domain.com'; */
$imapServerAddress      = 'localhost';
$imapPort               = 143;
$useSendmail            = false;
$smtpServerAddress      = 'localhost';
$smtpPort               = 25;
$sendmail_path          = '/usr/sbin/sendmail';
$pop_before_smtp        = true;
$imap_server_type       = 'uw';
$invert_time            = false;
$optional_delimiter     = 'detect';
$smtp_auth_mech = 'login';
The $domain part is configured for my setup, if you use a domain in the format of xxx.co.uk, then you may need to modify that part a bit.

Hope this helps.
 
sorry for asking a really dumb question, How can i edit a php file from ssh?

thanks in advance

Phil
 
which squirrelmail directory do i modify the config file in i ahev squirrelmail and squirrelmail-1.4.2
 
i ahev squirrelmail and squirrelmail-1.4.2

The squirrelmail directory is a symlink to squirrelmail-1.4.2 or so it should be :)

The config will be in squirrelmail-1.4.2

Chris
 
need a little more help if possible

OK, I am guessing it's the below text. As you can see i have added in the above.

Could someone confirm it's in the right place?

/* The dns name and port for your imap server. */
global $imapServerAddress, $imapPort;
$imapServerAddress = 'localhost';
$imapPort = 143;

/**
* The domain part of local email addresses.
* This is for all messages sent out from this server.
* Reply address is generated by $username@$domain
* Example: In [email protected], foo.com is the domain.
*/
global $domain;
$domain=$_SERVER['HTTP_HOST'];
while (sizeof(explode('.' $domain)) >2) { $domain = substr($domain, '.') + 1}
*/ $domain = 'server.catzmail.com';*/

/* Your SMTP server and port number (usually the same as the IMAP server). */
global $smtpServerAddress, $smtpPort;
$smtpServerAddress = 'localhost';
$smtpPort = 25;

/**
* Uncomment this if you want to deliver locally using sendmail
* instead of connecting to a SMTP-server.
*/
#global $useSendmail, $sendmail_path;
#$useSendmail = true;
#$sendmail_path = '/usr/sbin/sendmail';



Thanks in advance

Phil
 
I think you still need the
Code:
$smtp_auth_mech = 'login';
part so it will authenticate with your SMTP server.
 
ok i have added that but am getting the following error


Parse error: parse error in /var/www/html/squirrelmail-1.4.2/config/config.php on line 60

Below is line 58-61 any idea's?

global $domain;
$domain=$_SERVER['HTTP_HOST']; while (sizeof(explode('.', $domain)) > 2 {$domain = substr($domain, strpos($domain, '.') + 1);}
/* $domain = 'catzmail.com'; */
 
Last edited:
I don't see any thing on those lines, but it could be on a line above that. Usually if you forget to close a quote, brace or paren, it will tell you something similar.
 
ok, i have now got rid of the errors but cant still not send mail via squirrelmail. However after more testing and research the following might help.

I can send and recieve from both popmail (outlook) and uebmiau. But cannot use IMAP (through outlook) and send email from squirrelmail.

Any other idea's or help?

Thanks in advance

Phil
 
DirectAdmin Support said:
Hello,

Not too sure. Check the exim logs (/var/log/exim/*) and make sure that 127.0.01 is in the relay_hosts.

John

Does this help?

MAINLOG

2004-01-04 04:02:12 1Ad557-0008RM-MV <= [email protected] U=root P=local S=841
2004-01-04 04:02:13 1Ad557-0008RM-MV User 0 set for local_delivery transport is on the never_users list
2004-01-04 04:02:13 1Ad557-0008RM-MV == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2004-01-04 04:02:13 1Ad557-0008RM-MV ** [email protected]: retry timeout exceeded
2004-01-04 04:02:13 1Ad55J-0008Vh-0M <= <> R=1Ad557-0008RM-MV U=mail P=local S=1729
2004-01-04 04:02:13 1Ad55J-0008Vh-0M User 0 set for local_delivery transport is on the never_users list
2004-01-04 04:02:13 1Ad55J-0008Vh-0M == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
 
That is saying that "root" is in the never_users list in your /etc/exim.conf. I would suggest you try to send mail with a users account.
 
Actually looking at the log, it appears more like you are trying to send mail TO root, which because it is in the never_users list will not accept the email. Try sending mail to another account, for testing.
 
Hello,

Easy fix for the root issue is to put a root forwarder int /etc/aliases:

root: admin

or something like that.

John
 
DirectAdmin Support said:
Hello,

Easy fix for the root issue is to put a root forwarder int /etc/aliases:

root: admin

or something like that.

John

FANTASIC... What would i do without this forum..... I can now send from squirrelmail. However i still cannot get imap to work from outlook. Do i need to enable this or is it enabled from default?
 
Last edited:
Back
Top