ommapsmtp refuses to work after new installation

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

ommapsmtp refuses to work after new installation

Postby Clemens » Sat May 20, 2006 3:40 pm

Hi,

a rather stupid question:

What is the deeper meaning of the following error in the /var/log/mail.err log?

sendmail[22511]: k4KJOIWI022510: SYSERR(root): /opt/scalix/bin/ommapsmtp: cannot exec: Operation not permitted

Sendmail was configured to work fine, but after the Scalix installation it refuses to send mail with the above error. Now, to my understanding it is because it wants to check with Scalix if the address is local or not... but why does it fail?

The system I´m running is Suse 10.1 (I know... not really supported, but Suse 10.0 had problems with my raid controller... ;-) ) Thanks...

Thanks,

Clemens

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sat May 20, 2006 6:53 pm

Can you give some details on how you got it to install ?

Cheers

Dave

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Sat May 20, 2006 7:28 pm

Hi,

I changed the SuSE-release file as was described in another thread to change from the non-OSS to OSS and then I just used the command line option of the installer and just followed the steps.

It all seems to work fine except that bit that has to do with sendmail... at least so far I didn't encounter any other problems... knock on wood...

Regards,
Clemens

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sat May 20, 2006 8:07 pm

Can you post the output of

Code: Select all

ls -l /opt/scalix/bin/ommapsmtp


Cheers

Dave

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Sun May 21, 2006 4:48 am

The output is
-r-xr-sr-x 1 scalix scalix 15234 2006-03-27 19:23 /opt/scalix/bin/ommapsmtp

When I try to send mail from SWA I get the error "unable to send mail to:" followed by the address... however before I installed scalix I made sure I could send mail from the command line... (now throws up that ommapsmtp error)

EDIT: Interesting, just found the error "/var/run/sendmail/control: Operation not permitted" and noticed that the control file is not even there... don't know if that has to do with it or not...?

Thanks,
Clemens

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Mon May 22, 2006 6:06 pm

If that problem cant be solved now, is there a way of working around it by skipping ommapsmtp?

Or does anyone have an amazing idea to find a solution??? ;-)

Thanks,

Clemens

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon May 22, 2006 6:29 pm

What OS is this installed on ? Also, what user is sendmail running as ?

Cheers

Dave

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Tue May 23, 2006 2:46 pm

Hi,

the system is Suse 10.1 64bit.

Regarding the user who is running sendmail, it seems to be party root, partly mail:

ps -ef | grep sendmail
root 3152 1 0 May21 ? 00:00:00 sendmail: accepting connections
mail 3200 1 0 May21 ? 00:00:00 sendmail: Queue control
mail 3201 3200 0 May21 ? 00:00:01 sendmail: ./k4NB02X8019702 from queue
root 21569 3152 0 20:44 ? 00:00:00 sendmail: k4NIiVA8021569 localhost [127.0.0.1]: DATA
root 21602 21482 0 20:45 pts/0 00:00:00 grep sendmail


Thanks,

Clemens

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 23, 2006 2:48 pm

Can you run the command

Code: Select all

ommapsmtp user@example.com
. I'm not interested in the data it returns, I just need to know if the command can be run from the command line.

Cheers

Dave

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Tue May 23, 2006 2:51 pm

It returns user@example.com
no error messages, just the address.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 23, 2006 2:59 pm

Can you post the output of

Code: Select all

grep ^O /etc/sendmail.cf
O is capital oh.

Cheers

Dave

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Tue May 23, 2006 3:01 pm

Here you go... thanks!

# grep ^O /etc/sendmail.cf
O DontBlameSendmail=AssumeSafeChown,TrustStickyBit,GroupReadableSASLDBFile
O SevenBitInput=False
O AliasWait=10
O AliasFile=/etc/aliases
O MinFreeBlocks=100
O BlankSub=.
O HoldExpensive=False
O DeliveryMode=background
O TempFileMode=0600
O HelpFile=/usr/lib/sendmail.d/helpfile
O SendMimeErrors=True
O ForwardPath=$z/.forward.$w+$h:$z/.forward+$h:$z/.forward.$w:$z/.forward
O ConnectionCacheSize=2
O ConnectionCacheTimeout=5m
O HostStatusDirectory=.hoststat
O UseErrorsTo=False
O LogLevel=9
O CheckAliases=False
O OldStyleHeaders=True
O DaemonPortOptions=Name=MTA
O PrivacyOptions=authwarnings,needmailhelo,novrfy,noexpn,noverb
O PostmasterCopy=Postmaster
O QueueDirectory=/var/spool/mqueue
O Timeout.iconnect=30s
O Timeout.ident=0s
O Timeout.queuereturn=5d
O Timeout.queuewarn=4h
O SuperSafe=True
O StatusFile=/var/lib/sendmail/statistics
O DefaultUser=daemon:daemon
O UserDatabaseSpec=/etc/mail/userdb.db
O MaxDaemonChildren=15
O ServiceSwitchFile=/etc/mail/service.switch
O HostsFile=/etc/hosts
O NoRecipientAction=add-to-undisclosed
O SmtpGreetingMessage=$j Sendmail $v/$Z; $b
O UnixFromLine=From $g $d
O OperatorChars=.:%@!^/[]+=
O DeadLetterDrop=/var/log/dead.letter
O ControlSocketName=/var/run/sendmail/control
O MaxMimeHeaderLength=256/128
O MaxHeadersLength=32768
O CACertPath=/etc/mail/certs



EDIT: regarding O ControlSocketName=/var/run/sendmail/control
The file does not exist in this directory... :-( but it still managed to send mail previous to the installation... thanks

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 23, 2006 4:41 pm

OK...next step.

Run the command:

Code: Select all

sendmail -C /etc/sendmail.cf -bt
and enter

Code: Select all

3,0 user@example.com
then post the output. You can hit Ctrl-D to exit.

Cheers

Dave

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Tue May 23, 2006 4:44 pm

# sendmail -C /etc/sendmail.cf -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 user@example.com
canonify input: user @ example . com
Canonify2 input: user < @ example . com >
example.com: Name server timeout
Canonify2 returns: user < @ example . com >
canonify returns: user < @ example . com >
== Ruleset 3,0 (3) status 75
parse input: user < @ example . com >
Parse0 input: user < @ example . com >
Parse0 returns: user < @ example . com >
ParseLocal input: user < @ example . com >
ParseLocal returns: user < @ example . com >
Parse1 input: user < @ example . com >
Mailertable input: < example . com > user < @ example . com >
Mailertable input: example . < com > user < @ example . com >
Mailertable returns: user < @ example . com >
Mailertable returns: user < @ example . com >
MailerToTriple input: < smtp . 1und1 . com > user < @ example . com >
MailerToTriple returns: $# relay $@ smtp . 1und1 . com $: user < @ example . com >
Parse1 returns: $# relay $@ smtp . 1und1 . com $: user < @ example . com >
parse returns: $# relay $@ smtp . 1und1 . com $: user < @ example . com >

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 23, 2006 4:52 pm

Can you run the command:

Code: Select all

strace -f sendmail -C /etc/sendmail.cf -bt 2>&1 | grep ommap

and then enter

Code: Select all

3,0 user@example.com

You should see

Code: Select all

[pid 24422] stat64("/opt/scalix/bin/ommapsmtp", {st_mode=S_IFREG|S_ISGID|0555, st_size=14924, ...}) = 0
[pid 24422] execve("/opt/scalix/bin/ommapsmtp", ["/opt/scalix/bin/ommapsmtp", "user<@example.com.>"], [/* 1 var */]) = 0


Please post the results.

I'm tending to believe that this is a permissions problem as every time you've run this as root, it's worked fine.

Cheers

Dave


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 4 guests

cron