MSH installed on opensuse 12.1 cannot connect through localhost port 2

Am 02.05.2013 20:00, schrieb Martin Helm:
> The “master” you see in the lines with port 25 indicates the use of postfix.
> So you need to check on 12.1 if postfix is installed first, if it is
> installed you need to check why it does not run.
>


> su -
> rcpostfix status
> 

> check also in yast -> runlevel editor if it is enabled (you need to do
> that anyway otherwise it is not there if you reboot) or start as a
> simple test with “rcpostfix start” and see what it says.
>

An unrelated question. 12.1 will be end of life in 2 weeks, wouldn’t it
make more sense to do all that with 12.2 or 12.3?


PC: oS 12.3 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.10.2 | GTX 650 Ti
ThinkPad E320: oS 12.3 x86_64 | i3@2.30GHz | 8GB | KDE 4.10.2 | HD 3000
HannsBook: oS 12.3 x86_64 | SU4100@1.3GHz | 2GB | KDE 4.10.2 | GMA4500

Before I go to 12.1 and check out postfix and the other stuff I will answer as to 12.2 and 12.3:

I have tried out 12.2. I had some problems as to the keyboard in console F1-6 . Id est.: I did not get the non-ASCII letters like øæå and € etc. Now I solved that partly by doing kbd_mode -a. In a production environment I need the non-ASCIIs. I have also downloaded 12.3 but not installed or updated. I will definately try 12.3 too, but if I get 12.1 to work first,I think the path to 12.2 and 12.3 will come. I dont think there is that big difference between them.
Among other things there is too much work to have the MSH set up, so I’ll wait with 12.2-3

But right now I will boot the 12.1 and see what I can do as to the postfix and port 25…

Now I am done and you can follow the steps:

sigbj@linux-sb1y:~> su -
Passwort:
linux-sb1y:~ # rcpostfix status
redirecting to systemctl
postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; disabled)
Active: inactive (dead)
CGroup: name=systemd:/system/postfix.service

linux-sb1y:~ # chkconfig postfix
Note: Forwarding request to ‘systemctl is-enabled postfix.service’.
disabled
postfix off

linux-sb1y:~ # chkconfig postfix on
insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service,
Forwarding request to ‘/bin/systemctl --root / enable postfix.service’.
ln -s ‘///lib/systemd/system/postfix.service’ ‘///etc/systemd/system/multi-user.target.wants/postfix.service’
insserv: Forward service request to systemctl returned error status : 256

linux-sb1y:~ # chkconfig postfix
Note: Forwarding request to ‘systemctl is-enabled postfix.service’.
enabled
postfix on

linux-sb1y:~ # rcpostfix start
redirecting to systemctl
linux-sb1y:~ # rcpostfix status
redirecting to systemctl
postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; enabled)
Active: active (running) since Thu, 02 May 2013 21:53:15 +0200; 7s ago
Process: 3015 ExecStartPost=/etc/postfix/system/cond_slp register (code=exited, status=0/SUCCESS)
Process: 3013 ExecStartPost=/etc/postfix/system/wait_qmgr 60 (code=exited, status=0/SUCCESS)
Process: 2937 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 2935 ExecStartPre=/etc/postfix/system/update_chroot (code=exited, status=0/SUCCESS)
Process: 2933 ExecStartPre=/bin/echo Starting mail service (Postfix) (code=exited, status=0/SUCCESS)
Main PID: 3012 (master)
CGroup: name=systemd:/system/postfix.service
â 3012 /usr/lib/postfix/master
â 3023 pickup -l -t fifo -u
â 3024 qmgr -l -t fifo -u

Restart of the machine gave this result:

linux-sb1y:~ # netstat -plntu | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3012/master
tcp 0 0 ::1:25 :::* LISTEN 3012/master
linux-sb1y:~ #

**Now we try to send a message over MSH:
**
2013-05-02 22:10:13 [Thread-19 ] <INFO > <cecid.ebms.spa> <Sign the message: 20130502-221012-80200@192.168.0.198>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <setEnvelope, using algorithm: rsa-sha1>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <addDocument URI: cid payload-0, contentType: application/octet-stream>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <start signing>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <got private key from keystore>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <created DocumentResolver>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <created Transform>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <added main document (envelope)>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <added 1 attachment documents>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <got the certificate chain from keystore>
2013-05-02 22:10:14 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <added the certificate chain to signature>
2013-05-02 22:10:15 [Thread-19 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <message signed>
2013-05-02 22:10:15 [Thread-19 ] <INFO > <cecid.ebms.spa> <Send message 20130502-221012-80200@192.168.0.198 to xxxxxxxxxxx@xxxxxxxxxxxxxx>
2013-05-02 22:10:45 [main ] <DEBUG> <cecid.ebms.spa> <Message service handler stopped>

*As you can see from the above in blue there is no errors during the 30 seconds after the message is sent. So I can stop tha MSH.
*
I check the mailbox wait…find first the SOAP acknowledgment receipt…after a short while again… find the SOAP attachment…
Now I start the MSH again and as you can see the messages are downloaded and an acknowledgment is sendt back for the attachment:

2013-05-02 22:14:40 [Thread-4 ] <INFO > <cecid.ebms.spa> <Found 2 message(s) in mail box>

2013-05-02 22:14:43 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <start verifying>
2013-05-02 22:14:43 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <got the signature element>
2013-05-02 22:14:43 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <created signature object>
2013-05-02 22:14:43 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <created document resolver>
2013-05-02 22:14:43 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <got certificate and public key from CertResolver>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <setEnvelope, using algorithm: rsa-sha1>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <addDocument URI: cid payload-0, contentType: application/octet-stream>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <start signing>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <got private key from keystore>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <created DocumentResolver>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <created Transform>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <added main document (envelope)>
2013-05-02 22:14:43 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <added 1 attachment documents>
2013-05-02 22:14:44 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <got the certificate chain from keystore>
2013-05-02 22:14:44 [Thread-12 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <added the certificate chain to signature>
2013-05-02 22:14:45 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <checked signature value, result: true>
2013-05-02 22:14:45 [Thread-14 ] <DEBUG> <pkg.pki.ApacheXMLDSigner> <verification of cert path skipped>
2013-05-02 22:14:45 [Thread-14 ] <INFO > <cecid.ebms.spa> <Signature verification success: 20130502-221117-76993@ebxml.xenos.com>
2013-05-02 22:14:45 [Thread-14 ] <INFO > <cecid.ebms.spa> <Sign the acknowledgement (20130502-221445-65101@192.168.0.198) for message: 20130502-221117-76993@ebxml.xenos.com>
2013-05-02 22:14:45 [Thread-14 ] <INFO > <cecid.ebms.spa> <Sending async reply message: 20130502-221445-65101@192.168.0.198>
2013-05-02 22:14:46 [Thread-23 ] <INFO > <cecid.ebms.spa> <Send message 20130502-221445-65101@192.168.0.198 to xxxxxxxxxxx@xxxxxxxxxxxxxx>

2013-05-02 22:16:00 [main ] <DEBUG> <cecid.ebms.spa> <Message service handler stopped>

Congratulation Martin Helm for a fabulous work for my OpenSuSE 12.1!
I had actually no idea about the postfix, it did not come to my mind.

15020,1 Ende

I am happy to hear it finally came to a good end :slight_smile:


PC: oS 12.3 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.10.2 | GTX 650 Ti
ThinkPad E320: oS 12.3 x86_64 | i3@2.30GHz | 8GB | KDE 4.10.2 | HD 3000
HannsBook: oS 12.3 x86_64 | SU4100@1.3GHz | 2GB | KDE 4.10.2 | GMA4500