Email Not Sending - Internet Mail Gateway Queue Not Moving

Discuss the Scalix Messaging Services

Moderator: ScalixSupport

bluecc
Posts: 19
Joined: Mon Aug 25, 2008 6:01 pm

Email Not Sending - Internet Mail Gateway Queue Not Moving

Postby bluecc » Tue Sep 02, 2008 11:46 am

Just noticed this morning that our outbound emails weren't going out. They leave all clients (Outlook, SWA, Evolution) just fine with no errors.

I then logged into SAC and noticed that the messages are stuck in the Internet Mail Gateway queue. It says "1 messages being processed" and just sits there. I manually deleted out the spam emails, stopped and restarted the service, and restarted scalix. I also restarted scalix-postgres.

Here's what I get from omstat -s



Code: Select all

Service Router                Started        10:13:13       0         
Local Delivery                Started        10:13:13       0         
Internet Mail Gateway         Started        10:13:13       13       
Local Client Interface        Enabled        10:13:13       0         
Remote Client Interface       Enabled        10:13:13       2         
Test Server                   Started        10:13:13       0         
Request Server                Started        10:13:13       0         
Print Server                  Started        10:13:13       0         
Bulletin Board Server         Started        10:13:13       0         
Background Search Service     Started        10:13:13       0         
CDA Server                    Started        10:13:13       0         
POP3 interface                Started        10:13:13       0         
Omscan Server                 Started        10:13:13       0         
Proxy Folder Service          Started        10:13:13       0         


Here's omstat -a

Code: Select all

PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        10:13:11       
Notification Server           Started        10:13:11       0
Shared memory daemon          Started        NON-STOP       
Notification Monitor          Started        NON-STOP       
Session Monitor               Started        NON-STOP       
Indexer                       Started        NON-STOP       
Stats Daemon                  Started        NON-STOP       
Container Access Monitor      Started        NON-STOP       
Item Structure Server         Stopped                       
Database Monitor              Started        10:13:11       
Licence Monitor Daemon        Started        NON-STOP       
LDAP Daemon                   Started        10:13:11       
Queue Manager                 Started        NON-STOP       
Item Delete Daemon            Started        NON-STOP       
IMAP Server Daemon            Started        10:13:11       
SMTP Relay                    Started        10:13:11       
Mime Browser Controller       Started        10:13:11       
Event Server                  Started        10:13:11       


Any thoughts?

bluecc
Posts: 19
Joined: Mon Aug 25, 2008 6:01 pm

Postby bluecc » Tue Sep 02, 2008 12:39 pm

When running omscan -Aafx I get this error in the output::

Code: Select all

omscan : [OM 4951]
A serious error has occurred.  Please see the log files.
Event logged on 09.02.08 at 11:32:57.
Owner/Context Info : UNIX
Additional error info:
omscan : [OM 11170] Could not obtain exclusive access to a queue.

bluecc
Posts: 19
Joined: Mon Aug 25, 2008 6:01 pm

Postby bluecc » Tue Sep 02, 2008 1:38 pm

Seems it's stuck on one message. Even after clearing the queue it shows the queue empty but still says "processing 1 messages, 1 message in queue" up top.

How do I find where that message is and manually delete it?

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Tue Sep 02, 2008 2:33 pm

Stop the Internet Mail Gateway, kill any remaining unix.out processes, then look at things.

Jaredf
Posts: 11
Joined: Mon Jul 28, 2008 7:10 pm

Postby Jaredf » Tue Sep 02, 2008 5:36 pm

Hi I have the same issue. Running V 11.4.1

I have 10 msgs in the "internet mail gateway" queue that i am unable to remove/delete. I have tried deleting them via the SAC but this was this did not work.

I have stops all the scalix services

Code: Select all

omoff -s -d0
and restarted them

Code: Select all

omon -s
and have deleted the unix.out processes but the queue still sits at 10 msgs.

Code: Select all

omshowlog
shows no errors at all.

I can receive inbound emails but can not send them.

Jaredf
Posts: 11
Joined: Mon Jul 28, 2008 7:10 pm

Postby Jaredf » Tue Sep 02, 2008 7:10 pm

I have managed to remove the 10 emails in the queue, but now it just displays that i have 1 email processing.

I used

Code: Select all

omstat -q UNIX
to display the "msg ID's" in the queue and then

Code: Select all

omstat -q UNIX -j -R -m
to remove the emails one by one. See below.

Code: Select all

[root@icgmail03 ~]# omstat -q UNIX
1316       Test User4             MSG   N Test email from icgmail03 t 09.03.08
1700       smv / internet         MSG   N test                        09.03.08
1412       Test User4             MSG   N test from scalix to ihug    09.03.08
1460       Test User1             MSG   N test 8.39am                 08:41:11
1524       Test User1             MSG   N external                    08:44:36
1540       Test User1             MSG   N Test external email         08:46:14
1588       Test User1             MSG   N ichl.co.nz to sean          08:53:27
1636       Test User1             REPLY N RE: test from Sean          08:55:54
1652       Test User1             REPLY N RE: test from Sean          09:00:43

Code: Select all

[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1700
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1412
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1460
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1524
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1540
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1588
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1636
[root@icgmail03 ~]# omstat -q UNIX -j -R -m 1652


Code: Select all

[root@icgmail03 ~]# omstat -q UNIX
omstat : There are no messages on the queue

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Tue Sep 02, 2008 7:36 pm

Where does it display that you have a message processing? If there are no unix.out processes running, it's lying :D

Jaredf
Posts: 11
Joined: Mon Jul 28, 2008 7:10 pm

Postby Jaredf » Tue Sep 02, 2008 9:14 pm

Nice answer. "It’s lying"

When i look at SAC, it still shows that there is 1 email that is processing.
    Is there a way that i can get the Message ID so that i can delete it?
    I don’t want to recover it and don’t mind losing emails if need be.


I’ve also tried the

Code: Select all

omqdump -l UNIX
but this returned no results. Correct password was used.

Any ideas what i could do or is there a fault with Scalix 11.4.1, as i have the enterprise 11.3 running with 120 users without this issue since Nov 07. I'm only testing the new version to confirm that it works successful before upgrade from 11.3 to 11.4.1.

Jaredf
Posts: 11
Joined: Mon Jul 28, 2008 7:10 pm

Postby Jaredf » Tue Sep 02, 2008 9:55 pm

By stopping the UNIX "internet mail gateway" service and killing the unix.out processes, I can remove the email that is processing using omqdump tool. Then restart the UNIX service.

Basically every external email that i sent gets stuck in the UNIX queue. I am only able to receive emails and sent emails locally with the same domain.

Question:
Yes there any tests that i can perform to see why the email is getting stuck in the queue?

Jaredf
Posts: 11
Joined: Mon Jul 28, 2008 7:10 pm

All fixed

Postby Jaredf » Tue Sep 02, 2008 11:05 pm

All Fixed

The problem was with Sendmail not scalix.

I updated the sendmail.mc (located in /etc/mail/) to only have:

Code: Select all

DAEMON_OPTIONS(`Port=smtp, Addr=127.0.0.1, Name=MTA, M=C')dnl


    Ran make -d -C /etc/mail

    Then restarted sendmail to make sure the settings worked.



The Problem:
I have previously entered the internal server IP address and the external internet IP for this server, so there was 3 lines all called MTA. Looking at the maillog i noticed that the sendmail was refused to send mail for the localhost 127.0.0.1.

proflan
Posts: 15
Joined: Tue Dec 18, 2007 3:27 pm

Postby proflan » Mon Sep 15, 2008 2:27 pm

i've same problem: messages not sended:

Code: Select all

--------------------- sendmail Begin ------------------------
 SEVERE ERRORS
 -------------
  System Error Messages:
     ldap_init/ldap_bind failed to localhost in map ldapsx: Unknown error 325: 24
Time(s)
  Total SEVERE ERRORS:  24
  ---------------------- sendmail End -------------------------


Code: Select all

   **********************************************
    **      THIS IS A WARNING MESSAGE ONLY      **
    **  YOU DO NOT NEED TO RESEND YOUR MESSAGE  **
    **********************************************

The original message was received at Sun, 14 Sep 2008 04:02:05 +0200
from localhost.localdomain [127.0.0.1] (may be forged)

   ----- Transcript of session follows -----
451 4.3.5 ldap_init/ldap_bind failed to localhost in map ldapsx: Unknown error 325
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old


Code: Select all

    **********************************************
    **      THIS IS A WARNING MESSAGE ONLY      **
    **  YOU DO NOT NEED TO RESEND YOUR MESSAGE  **
    **********************************************

The original message was received at Mon, 15 Sep 2008 04:02:05 +0200
from localhost.localdomain [127.0.0.1] (may be forged)

   ----- Transcript of session follows -----
451 4.3.5 ldap_init/ldap_bind failed to localhost in map ldapsx: Unknown error 325
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old


# omstat -s

Code: Select all

Service Router                Started        14.09.08       0
Local Delivery                Started        14.09.08       0
Internet Mail Gateway         Started        14.09.08       0
Local Client Interface        Enabled        14.09.08       0
Remote Client Interface       Enabled        14.09.08       0
Test Server                   Started        14.09.08       0
Request Server                Started        14.09.08       0
Print Server                  Started        14.09.08       0
Bulletin Board Server         Started        14.09.08       0
Background Search Service     Started        14.09.08       0
CDA Server                    Started        14.09.08       0
POP3 interface                Started        14.09.08       0
Omscan Server                 Started        14.09.08       0
Proxy Folder Service          Started        14.09.08       0


# omstat -a

Code: Select all

PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        14.09.08
Notification Server           Started        14.09.08       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Indexer                       Started        NON-STOP
Stats Daemon                  Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped
Database Monitor              Started        14.09.08
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        14.09.08
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        14.09.08
SMTP Relay                    Started        14.09.08
Mime Browser Controller       Started        14.09.08
Event Server                  Started        14.09.08


# omsendin

Code: Select all

NOTE: /etc/mail/sendmail.cf unchanged.  Scalix lines already active.


Code: Select all

Reporting-MTA: smtp;
DSN-Gateway: dns;

Final-Recipient: rfc822
Action: failed
Status: 5.3.0
x-scalix-Reason-Code: 5

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Mon Sep 15, 2008 4:19 pm

System Error Messages:
ldap_init/ldap_bind failed to localhost in map ldapsx: Unknown error 325: 24
Time(s)
Total SEVERE ERRORS: 24


Is the ldapmapper process running?

proflan
Posts: 15
Joined: Tue Dec 18, 2007 3:27 pm

Postby proflan » Mon Sep 15, 2008 4:27 pm

yes, it was a network misconfiguration. The ext. IP pointet at localhost.
But now an other error occurs:

"Unrecognized host name"

Code: Select all

Reporting-MTA: smtp;
DSN-Gateway: dns;

Final-Recipient: rfc822;
Action: failed
Status: 5.1.1
x-scalix-Reason-Code: 100


but the host is pingable an returns the correct ip. sendmail seems not to resolve it !?

Code: Select all

Sep 15 22:30:08 elfriede sendmail[23579]: m8FKU86T023579: <name@domain.tld>... Unrecognized host name domain.tld.
Sep 15 22:30:08 elfriede sendmail[23579]: m8FKU86T023579: from=<name@domain.tld>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]


Return to “Scalix Messaging Services”



Who is online

Users browsing this forum: No registered users and 4 guests

cron