Postfix integration

General feedback

Moderators: ScalixSupport, admin

FuriousJack

Postfix integration

Postby FuriousJack » Mon Apr 16, 2007 5:22 pm

Hello Scalix Team

I´m testing Scalix for an german IT-Company and i´m really delighted with Scalix. I think we could use it in some cases instead of MS-Exchange or OpenExchange.

But there is one big problem. None of our customers wants to use sendmail anymore... so please add offizial support for Postfix!!!
I readed this message very often on the board and i´m wondering why don´t you do?

best regards

Florian

Shredder

Postby Shredder » Mon Apr 16, 2007 6:31 pm

There is a howto on the wiki on how to integrate postfix:

Code: Select all

http://www.scalix.com/wiki/index.php?title=HowTos/Postfix


Hope that helps you out,
Shredder

dougp23
Posts: 229
Joined: Thu Feb 15, 2007 2:42 pm

Postby dougp23 » Mon Apr 16, 2007 8:26 pm

Jack, just curious, why don't they want to use Sendmail anymore?

As far as security goes, yes in the 6's and early 7's, sendmail had security issues. But most of the 8 stuff has been rock solid. Yes, the config file is a nightmare, but that's what the m4 macro file is for now.

I'm just curious. Sometimes you get bad press, you can't ever get away from it!

FuriousJack

Postby FuriousJack » Tue Apr 17, 2007 3:11 am

I have already tested http://www.scalix.com/wiki/index.php?ti ... os/Postfix
it works like a charm.
But the Scalix installer requires sendmail...

dougp23:
Yes, the config file is a nightmare... and the antivirus integration and flexibility also.
Why do you think SuSE recommands to install Postfix instead of sendmail -> its so much easyer.
Or am i wrong?

dougp23
Posts: 229
Joined: Thu Feb 15, 2007 2:42 pm

Postby dougp23 » Tue Apr 17, 2007 8:24 pm

FuriousJack wrote:Yes, the config file is a nightmare... and the antivirus integration and flexibility also.
Why do you think SuSE recommands to install Postfix instead of sendmail -> its so much easyer.
Or am i wrong?


Well like I said, no one attempts to work the config file anymore! Not even the hardcore people! But the m4 and sendmail.mc make it a whole lot easier. I found spamassassin integration pretty easy.

I also like Postfix, have no real favorite between the two. As far as Suse recommendation, I am not sure why they recommend one over the other. For true ease of use, look at Exim. But what you will find, is that sendmail came out with the dinosaurs, so it runs with everything and everybody's software.

Personally, I have had a very good experience with sendmail on Scalix.

daniel.sand

Postby daniel.sand » Thu May 03, 2007 10:00 am

ola,

question:

i used the same setup like in the wiki guide.

single mails are no problems.

now i tried to put the load on the system (300+ mails) get delivered to one users box.

i would say 75 % gets delivered. But the rest looks like:

some errors in the postfix log:

Code: Select all

---
May  3 15:44:08 hybrid postfix/smtp[23981]: 4105C3302AE:
to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=0, status=deferred
(lost connection with 127.0.0.1[127.0.0.1] while
 sending end of data -- message may be sent more than once)
 May  3 15:44:08 hybrid postfix/cleanup[24024]: 6681F330295:
 message-id=<004601c78d7f$9c6d4bc0$6e1e19ac@bsmos.de>
 May  3 15:44:08 hybrid postfix/qmgr[23741]: 6681F330295: from=<x@xxx>,
 size=4364, nrcpt=1 (queue active)
 May  3 15:44:08 hybrid postfix/smtpd[23960]: 735083302B4:
 client=localhost.localdomain[127.0.0.1]
 May  3 15:44:08 hybrid postfix/cleanup[24024]: 735083302B4:
 message-id=<004701c78d7f$aa312920$6e1e19ac@bsmos.de>
 May  3 15:44:08 hybrid postfix/qmgr[23741]: 735083302B4: from=<x@xxx>,
 size=2253, nrcpt=1 (queue active)
 May  3 15:44:08 hybrid postfix/smtpd[23960]: 7FA653302B5:
 client=localhost.localdomain[127.0.0.1]
 May  3 15:44:08 hybrid postfix/smtp[24002]: 99F9633027A:
 to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=8, status=sent
 (250 Ok)
 May  3 15:44:08 hybrid postfix/qmgr[23741]: 99F9633027A: removed
 May  3 15:44:08 hybrid postfix/cleanup[24024]: 7FA653302B5:
 message-id=<4639DEE1.2080205@medizin-online.de>
 May  3 15:44:08 hybrid postfix/qmgr[23741]: 7FA653302B5:
 from=<xxx.xxx@xxx.xx>, size=2693, nrcpt=1 (queue
 active)
 May  3 15:44:08 hybrid postfix/smtpd[23960]: disconnect from
 localhost.localdomain[127.0.0.1]
 May  3 15:44:08 hybrid postfix/smtp[23969]: 4E313330277:
 to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent
 (250 Ok)
 May  3 15:44:08 hybrid postfix/qmgr[23741]: 4E313330277: removed
 May  3 15:44:08 hybrid postfix/spawn[23964]: warning: command
 /opt/scalix/bin/unix.in exit status 99
 May  3 15:44:08 hybrid postfix/smtp[24002]: 6681F330295:
 to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=0,
 status=deferred (lost connection with 127.0.0.1[127.0.0.1] while
  sending end of data -- message may be sent more than once)
  May  3 15:44:08 hybrid postfix/smtp[23967]: F36D533025C:
  to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=8, status=sent
  (250 Ok)
  May  3 15:44:08 hybrid postfix/qmgr[23741]: F36D533025C: removed
  May  3 15:44:08 hybrid postfix/spawn[23964]: warning: command
  /opt/scalix/bin/unix.in exit status 99
  May  3 15:44:08 hybrid postfix/smtp[23969]: 735083302B4:
  to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=0,
  status=deferred (lost connection with 127.0.0.1[127.0.0.1] while
   sending end of data -- message may be sent more than once)

May  3 15:44:23 hybrid postfix/spawn[23964]: warning: command
/opt/scalix/bin/unix.in exit status 1
May  3 15:44:23 hybrid postfix/smtp[23972]: 42F1A3302A6:
to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=20, status=sent
(250 Ok)
May  3 15:44:23 hybrid postfix/qmgr[23741]: 42F1A3302A6: removed
May  3 15:44:25 hybrid postfix/spawn[23964]: warning: command
/opt/scalix/bin/unix.in exit status 1
May  3 15:44:43 hybrid postfix/qmgr[23741]: 21A00330292: removed
May  3 15:44:45 hybrid postfix/spawn[23964]: warning: command
/opt/scalix/bin/unix.in exit status 1
May  3 15:44:45 hybrid postfix/smtp[23981]: 5A4DC3302B0:
to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=37, status=sent
(250 Ok)
May  3 15:44:45 hybrid postfix/qmgr[23741]: 5A4DC3302B0: removed
May  3 15:44:47 hybrid postfix/spawn[23964]: warning: command
/opt/scalix/bin/unix.in exit status 1
May  3 15:44:47 hybrid postfix/smtp[24002]: 7FA653302B5:
to=<daniel.sand@xxx>, relay=127.0.0.1[127.0.0.1], delay=39, status=sent
(250 Ok)
May  3 15:44:47 hybrid postfix/qmgr[23741]: 7FA653302B5: removed

----

WARNING                        Internet Mail (Incoming      ) 03.05.07 15:44:47
[OM.UX 1402] Cannot read SMTP command.
        <- Q_PutMsgOnQueue2
        -> Msg_CloseFile
        -> Msg_RealCloseFile
        -> tf_CloseFile
        <- tf_CloseFile
        <- Msg_RealCloseFile
        <- Msg_CloseFile
        -> aud_EndTransaction
        <- aud_EndTransaction
        <- ux_InConvUnixMsgToGenesis
        -> ux_InWriteMailReply
        <- ux_InWriteMailReply
        -> ux_InFreeRecipList
        <- ux_InFreeRecipList
        -> ux_InReadMailCommand
        <- /build/11.0.2/src/bin/ux/ux_in.c:1170[102,1402]


WARNING                        Internet Mail (Incoming      ) 03.05.07 15:44:49
[OM.UX 1402] Cannot read SMTP command.
        <- Q_PutMsgOnQueue2
        -> Msg_CloseFile
        -> Msg_RealCloseFile
        -> tf_CloseFile
        <- tf_CloseFile
        <- Msg_RealCloseFile
        <- Msg_CloseFile
        -> aud_EndTransaction
        <- aud_EndTransaction
        <- ux_InConvUnixMsgToGenesis
        -> ux_InWriteMailReply
        <- ux_InWriteMailReply
        -> ux_InFreeRecipList
        <- ux_InFreeRecipList
        -> ux_InReadMailCommand
        <- /build/11.0.2/src/bin/ux/ux_in.c:1170[102,1402]
[OM 10270] Process about to terminate due to error.
Signal (Segmentation Violation) trapped by process 24027
Procedure trace follows:
  <- ux_InParseMimeContent
  -> ux_InAddRecipsToTF
  -> ux_InCreateRecipientRecord
  -> tf_InitRecord
  <- tf_InitRecord
  -> tf_PutINT16
  <- tf_PutINT16
  -> tf_PutINT16
  <- tf_PutINT16
  -> tf_PutString
  <- tf_PutString
  -> tf_PutString
  <- tf_PutString
  -> tf_PutString
  <- tf_PutString
  -> tf_PutString


SERIOUS ERROR                  Internet Mail (Incoming      ) 03.05.07 15:44:08
[OM 10272] BACKTRACE:
/opt/scalix/lib/libom_er.so(er_add_backtrace+0xb3)[0xf94dc3]
/opt/scalix/lib/libom_er.so[0xf950ac]
/opt/scalix/lib/libom_er.so(er_DumpProcAndExit+0x1f)[0xf9523f]
[0xefc420]
/opt/scalix/bin/unix.in[0x804cb64]
/opt/scalix/bin/unix.in[0x805495f]
/opt/scalix/bin/unix.in[0x805414f]
/opt/scalix/bin/unix.in[0x804ee28]
/opt/scalix/bin/unix.in[0x804c4d7]
/opt/scalix/lib/libom_cl.so(cl_CallProc+0x86)[0x8af136]
/opt/scalix/bin/unix.in[0x805697a]
/lib/libc.so.6(__libc_start_main+0xdc)[0x4b34e4]
/opt/scalix/bin/unix.in[0x804c0b1]

SERIOUS ERROR                  Internet Mail (Incoming      ) 03.05.07 15:44:08
[OM 10272] BACKTRACE:
/opt/scalix/lib/libom_er.so(er_add_backtrace+0xb3)[0x170dc3]
/opt/scalix/lib/libom_er.so[0x1710ac]
/opt/scalix/lib/libom_er.so(er_DumpProcAndExit+0x1f)[0x17123f]
[0xb15420]
/opt/scalix/bin/unix.in[0x804cb64]
/opt/scalix/bin/unix.in[0x805495f]
/opt/scalix/bin/unix.in[0x805414f]
/opt/scalix/bin/unix.in[0x804ee28]
/opt/scalix/bin/unix.in[0x804c4d7]
/opt/scalix/lib/libom_cl.so(cl_CallProc+0x86)[0x46e136]
/opt/scalix/bin/unix.in[0x805697a]
/lib/libc.so.6(__libc_start_main+0xdc)[0x1ab4e4]
/opt/scalix/bin/unix.in[0x804c0b1]

---

any sugestions ? im not quiet sure if this is a bug or the unix.in bin cannot handle this much mails per second.... but im still looking in it.

just for the book. FC 5 - Scalix 11.0.2.1 - Postfix 2.2.8

Jeremy James
Posts: 40
Joined: Thu Apr 26, 2007 5:12 am
Location: Frankfurt, Germany

Postby Jeremy James » Thu Jun 21, 2007 3:46 am

I am encountering exactly the same error as described by daniel.sand

postfix logfile shows this occasionally:

Code: Select all

Jun 21 07:57:04 host postfix/spawn[18450]: warning: command /opt/scalix/bin/unix.in exit status 1

WARNING Internet Mail (Incoming ) 06.21.07 07:57:04
[OM.UX 1402] Cannot read SMTP command.
<- Q_PutMsgOnQueue2
-> Msg_CloseFile
-> Msg_RealCloseFile
-> tf_CloseFile
<- tf_CloseFile
<- Msg_RealCloseFile
<- Msg_CloseFile
-> aud_EndTransaction
<- aud_EndTransaction
<- ux_InConvUnixMsgToGenesis
-> ux_InWriteMailReply
<- ux_InWriteMailReply
-> ux_InFreeRecipList
<- ux_InFreeRecipList
-> ux_InReadMailCommand
<- /build/11.1.0/src/bin/ux/ux_in.c:1170[102,1402]


It seems to appear more often, if one mail gets send to more than one recipient in one go.
System load was definitely not high, load average is always around 0.2, so nothing to worry about.

It would be great if anyone from scalix could let us know, what that "WARNING Internet Mail (Incoming )" means - will the mail get delivered correctly or does it vanish somewhere then?

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Wed Jun 27, 2007 9:24 am

Guys, please check out http://www.scalix.com/wiki/index.php?ti ... te_Postfix which I wrote recently. It hasn't received enough testing to be considered officially supported, but should work well. Let me know if you have problems.

Chris

Beaujolais
Posts: 94
Joined: Sun Sep 03, 2006 2:47 pm
Location: Burlington, Ontario

Postby Beaujolais » Thu Jun 28, 2007 3:00 pm

Chris, can you please post your full main.cf and master.cf?
I've followed your postfix integration and having some issue.

Need to compare mainly main.cf.

Thanks,
Brano

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Thu Jun 28, 2007 3:02 pm

Hi Brano,

I'm traveling at the moment and don't have access to the test system it's on - what kind of issue are you having?

Chris

Beaujolais
Posts: 94
Joined: Sun Sep 03, 2006 2:47 pm
Location: Burlington, Ontario

Postby Beaujolais » Thu Jun 28, 2007 4:13 pm

I'm on SUSE and have been able to setup saslauthd and verified that is working.
I've also setup the transport_maps via LDAP (as per your WiKi) and verified it's working.

The problem I have is relaying messages to scalix on smtp:[my_host]:10025 ...it starts looping and then bounced back with message too many hops.

Anyway, what I'm trying to understand how you handle the mails for scalix. I'm guessing you have those defined as relay domains, otherwise I'm getting Relaying denied. If I add those to relay domains then I get too many hops error. I've tried mailbox_transport instead but I get same looping.

Other issue:
Also here is what I don't understand: In scalix my primary domain is domain1.com, however I have many users that have alias to domain2.com
Now: when I send mail to myscalix@domain2.com when postfix is passing the message through the transport the mail is expanded to myscalix@myhost.domain1.com and this kills me.

Long story short, I'm missing something here but not sure what.

Beaujolais
Posts: 94
Joined: Sun Sep 03, 2006 2:47 pm
Location: Burlington, Ontario

Postby Beaujolais » Thu Jun 28, 2007 4:22 pm

One more question: Is there a way to query scalix ldap to get all the defined e-mail domains? I was thinking to add those via ldap query to postfix as my domains.
Same question re: all e-mail addresses to add them to my recipients.

Beaujolais
Posts: 94
Joined: Sun Sep 03, 2006 2:47 pm
Location: Burlington, Ontario

Postby Beaujolais » Fri Jun 29, 2007 1:11 pm

Never mind, I've fixed all my issues with postfix. Will post updated postfix integration with SUSE later.


Return to “Feedback”



Who is online

Users browsing this forum: No registered users and 2 guests