LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squirrelmail Problems (https://www.linuxquestions.org/questions/linux-server-73/squirrelmail-problems-808053/)

abakhiet 05-15-2010 03:19 PM

Squirrelmail Problems
 
1 Attachment(s)
Hola,
Recently i installed Squirrelmail in my Linux Box and all is fine except some errors that faces me, these errors like :
Quote:

ERROR:
ERROR: Could not complete request.
Query: CREATE "Sent"
Reason Given: Invalid mailbox name.
That message appears in the left side after you login to it using :
my server is :
Quote:

Linux Centos 5.4
Postfix
also, please see the attached photo for more informations.

bathory 05-15-2010 03:52 PM

Hi abakhiet

Take a look here and hopefully you'll find a solution that works for you.

Regards

abakhiet 05-15-2010 06:26 PM

Cool
 
Quote:

Originally Posted by bathory (Post 3969984)
Hi abakhiet

Take a look here and hopefully you'll find a solution that works for you.

Regards

Really thank you my friend, i change some parameters in :
Code:

/etc/squirrelmail/config.php
and change these parameters into :
Quote:

INBOX
INBOX.DRAFTS
INBOX.SENT
INBOX.TRASH
and it is done, but i noticed some problems too, i have a stable Mail server, it can send and receive mails via relayhost, so when i use Squirrelmail to sendmail it gives me some error like :
Quote:

ERROR:
Transaction failed
Server replied: 554 5.7.1 <eebng_1422@yahoo.com>: Relay access denied
i think that the solution is here, but i don't know which parameter:
Quote:

$squirrelmail_default_language = 'en_US';
$default_charset = 'iso-8859-1';
$lossy_encoding = false;

$domain = 'abakhiet.info';
$imapServerAddress = 'mail.abakhiet.info';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'mail.abakhiet.info';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
$pop_before_smtp = false;
$imap_server_type = 'other';
$invert_time = false;
$optional_delimiter = '.';
$encode_header_key = '';
Thanks in Advance :D

bathory 05-16-2010 01:48 PM

Is the webserver running squirrelmail on the same box with you mail server?
If it's not, then you have to add the webserver IP in mynetworks parameter.
Or take a look /var/log/maillog to see why it denies relay to the webserver.

Regards

abakhiet 05-17-2010 07:20 AM

all my servers are in the same box.
but i need to know how can i use Squirrelmail to send messages via Postfix :D

bathory 05-17-2010 07:35 AM

Quote:

$sendmail_path = '/usr/sbin/sendmail';
That should be enough assuming that the path to the sendmail replacement is correct.
Maybe you can change
Quote:

$smtpServerAddress = 'mail.abakhiet.info';
to
Code:

$smtpServerAddress = 'localhost';
since both postfix and squirrelmail are on the same box.

And don't forget to check the logs for details

Regards

zeos386sx 05-17-2010 05:37 PM

have you checked this howto?

specifically did you run the system-switch-mail command to switch from sendmail to postfix?

abakhiet 05-18-2010 12:46 AM

Thanks for your help bathory, but i think the parameters to use is :

Quote:

$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
i need to told you also that i need to use postfix not Sendmail :D
please see that error from Squirrelmail webpage
Quote:

Email delivery error
Server replied: 1 Can't execute command '/usr/sbin/postfix -i -t -fabakhiet@abakhiet.info'.
thanks for your time,...

bathory 05-18-2010 02:19 AM

Quote:

Thanks for your help bathory, but i think the parameters to use is :

Quote:
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
i need to told you also that i need to use postfix not Sendmail
I know that you're using postfix, but you should also know that postfix provides a binary sendmail for compatibility with programs that are using the sendmail command to send email.
To me it looks like you have replaced this binary with a symlink to postfix, thus:
Quote:

Email delivery error
Server replied: 1 Can't execute command '/usr/sbin/postfix -i -t -fabakhiet@abakhiet.info'.
What is the output of :
Code:

ls -l /usr/sbin/sendmail
Also you have "-f" switch that is attached to the recipient. Where did it came from?

abakhiet 05-18-2010 01:12 PM

Really thanks
all is work now, you are right postfix has a binary code for Sendmail.
Quote:

[root@abakhiet ~]# ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 May 2 07:58 /usr/sbin/sendmail -> /etc/alternatives/mta
Thanks a lot, and i make these changes in my file :
Quote:

$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
Thanks a lot to all whom help me solving that problem, including my friend bathory


All times are GMT -5. The time now is 07:48 PM.