Re: [OpenIndiana-discuss] Help needed starting postfix as a service - maintenance state

2023-01-23 Thread Stephan Althaus

On 1/23/23 11:36, Predrag Zecevic via openindiana-discuss wrote:
tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix) 


Hello!

Thanks for your help..

Nothing new here, There are my tests visible with svcadm clear postfix...


# tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix)
[ Jan 23 09:29:38 Method "start" exited with status 1. ]
[ Jan 23 09:30:37 Leaving maintenance because clear requested. ]
[ Jan 23 09:30:37 Enabled. ]
[ Jan 23 09:30:37 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:30:38 Method "start" exited with status 1. ]
[ Jan 23 09:32:16 Leaving maintenance because clear requested. ]
[ Jan 23 09:32:16 Enabled. ]
[ Jan 23 09:32:16 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:32:17 Method "start" exited with status 1. ]
[ Jan 23 09:44:37 Disabled. ]
[ Jan 23 09:44:37 Rereading configuration. ]
[ Jan 23 09:45:08 Enabled. ]
[ Jan 23 09:45:08 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:09 Method "start" exited with status 1. ]
[ Jan 23 09:45:09 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:10 Method "start" exited with status 1. ]
[ Jan 23 09:45:10 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:11 Method "start" exited with status 1. ]
[ Jan 23 09:45:22 Leaving maintenance because disable requested. ]
[ Jan 23 09:45:22 Disabled. ]


Stephan



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help needed starting postfix as a service - maintenance state

2023-01-23 Thread Predrag Zecevic via openindiana-discuss

On 23.01.2023 08:18, Stephan Althaus wrote:

Hello!

Yesterday i moved from CSWpostfix to the OI version.

"postfix start" and "postfix stop" works in my zone (as root), no 
errors with "postfix check",

but "svcadm enable postfix" results in maintenance state because of:

Jan 23 07:45:37 mail postfix/postfix-script[23386]: [ID 947731 
mail.crit] fatal: the Postfix mail system is already running
Jan 23 07:45:38 mail postfix/postfix-script[23392]: [ID 947731 
mail.crit] fatal: the Postfix mail system is already running
Jan 23 07:45:39 mail postfix/postfix-script[23398]: [ID 947731 
mail.crit] fatal: the Postfix mail system is already running


Disabling, and re-enabling does not help, the reboot of the zone 
doesn't help either.


Groups for role 'root' are:

#groups
root other bin sys adm uucp mail tty lp nuucp daemon postfix

Any hints are welcome to get the service running..

Thanks!


Hi Stefan,

what shows this command:
:; tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix)

Maybe there is something there?
Regards.

Stephan



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


--
Predrag Zečević
predrag.zecevic.1...@googlemail.com


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help needed starting postfix as a service - maintenance state

2023-01-23 Thread Predrag Zecevic via openindiana-discuss

On 23.01.2023 11:38, Stephan Althaus wrote:

On 1/23/23 11:36, Predrag Zecevic via openindiana-discuss wrote:
tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix) 


Hello!

Thanks for your help..

Nothing new here, There are my tests visible with svcadm clear postfix...


# tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix)
[ Jan 23 09:29:38 Method "start" exited with status 1. ]
[ Jan 23 09:30:37 Leaving maintenance because clear requested. ]
[ Jan 23 09:30:37 Enabled. ]
[ Jan 23 09:30:37 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:30:38 Method "start" exited with status 1. ]
[ Jan 23 09:32:16 Leaving maintenance because clear requested. ]
[ Jan 23 09:32:16 Enabled. ]
[ Jan 23 09:32:16 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:32:17 Method "start" exited with status 1. ]
[ Jan 23 09:44:37 Disabled. ]
[ Jan 23 09:44:37 Rereading configuration. ]
[ Jan 23 09:45:08 Enabled. ]
[ Jan 23 09:45:08 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:09 Method "start" exited with status 1. ]
[ Jan 23 09:45:09 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:10 Method "start" exited with status 1. ]
[ Jan 23 09:45:10 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:11 Method "start" exited with status 1. ]
[ Jan 23 09:45:22 Leaving maintenance because disable requested. ]
[ Jan 23 09:45:22 Disabled. ]


Stephan


Than, maybe, mail log can show more. To check where it goes (I am using 
rsyslog):

:; grep -w mail /etc/rsyslog.conf
*.err;kern.debug;daemon.notice;mail.crit    /var/adm/messages
# Log anything (except auth, cron, daemon & mail) of level info or higher.
*.info;mail.none;auth.none;cron.none    -/var/log/misc.log
# Log all the auth, daemon & mail messages in one place.
mail.*  -/var/log/mail.log

:; less /var/log/mail.log # might give a hint next...

HTH
Regards.


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


--
Predrag Zečević
predrag.zecevic.1...@googlemail.com


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Help needed starting postfix as a service - maintenance state

2023-01-23 Thread Stephan Althaus

On 1/23/23 11:47, Predrag Zecevic via openindiana-discuss wrote:

On 23.01.2023 11:38, Stephan Althaus wrote:

On 1/23/23 11:36, Predrag Zecevic via openindiana-discuss wrote:
tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix) 


Hello!

Thanks for your help..

Nothing new here, There are my tests visible with svcadm clear 
postfix...



# tail -20 $(svcprop -p restarter/logfile svc:/network/smtp:postfix)
[ Jan 23 09:29:38 Method "start" exited with status 1. ]
[ Jan 23 09:30:37 Leaving maintenance because clear requested. ]
[ Jan 23 09:30:37 Enabled. ]
[ Jan 23 09:30:37 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:30:38 Method "start" exited with status 1. ]
[ Jan 23 09:32:16 Leaving maintenance because clear requested. ]
[ Jan 23 09:32:16 Enabled. ]
[ Jan 23 09:32:16 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:32:17 Method "start" exited with status 1. ]
[ Jan 23 09:44:37 Disabled. ]
[ Jan 23 09:44:37 Rereading configuration. ]
[ Jan 23 09:45:08 Enabled. ]
[ Jan 23 09:45:08 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:09 Method "start" exited with status 1. ]
[ Jan 23 09:45:09 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:10 Method "start" exited with status 1. ]
[ Jan 23 09:45:10 Executing start method ("/usr/sbin/postfix start"). ]
[ Jan 23 09:45:11 Method "start" exited with status 1. ]
[ Jan 23 09:45:22 Leaving maintenance because disable requested. ]
[ Jan 23 09:45:22 Disabled. ]


Stephan


Than, maybe, mail log can show more. To check where it goes (I am 
using rsyslog):

:; grep -w mail /etc/rsyslog.conf
*.err;kern.debug;daemon.notice;mail.crit    /var/adm/messages
# Log anything (except auth, cron, daemon & mail) of level info or 
higher.

*.info;mail.none;auth.none;cron.none    -/var/log/misc.log
# Log all the auth, daemon & mail messages in one place.
mail.*  -/var/log/mail.log

:; less /var/log/mail.log # might give a hint next...

HTH
Regards.


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



Hello!

Jan 23 12:00:47 mail postfix/postfix-script[28446]: [ID 947731 
mail.crit] fatal: the Postfix mail system is already running
Jan 23 12:00:48 mail postfix/postfix-script[28628]: [ID 947731 
mail.crit] fatal: the Postfix mail system is already running
Jan 23 12:00:49 mail postfix/postfix-script[28794]: [ID 947731 
mail.crit] fatal: the Postfix mail system is already running


the process is not running because of zone reboot:

# ps ax|grep post
 28813 pts/3    S  0:00 grep post
# netstat -a -P tcp|grep smtp
#

I am not shure how the start of "/usr/sbin/postfix start" within the 
service should find a process, there is no process and no other listener 
on the port...


Manual start/stop works as expected..

# postfix start
postfix/postfix-script: starting the Postfix mail system
# netstat -a -P tcp|grep smtp
  *.smtp   *.* 0  0 128000  0 
LISTEN


Stephan



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] TLS Alerts and status mail problem from OpenIndiana

2023-01-23 Thread g...@napp-it.org

I send TLS alerts and status mails via the following Perl script:
(napp-it menu Jobs > TLS > Test

  use Net::SMTP;
  use Authen::SASL qw(Perl);

  my $smtp = Net::SMTP->new("$server",
  SSL => 1,
  #Port => 587,
  Debug => 1,
  Hello => "smtp.gmail.com",
  Timeout => "30",) || die("could not connect to smtp-server");

  $smtp->auth("$user","$pw");

  

  $smtp->mail($from);

  $smtp->to($to);
  $smtp->data();
  $smtp->datasend("From: $from\n");
  $smtp->datasend("To: $to\n");

  $smtp->datasend("Subject: Test Email\n");
  $smtp->datasend("\n");
  $smtp->datasend("This is a test email sent over TLS with the STARTTLS 
extension.\n");

  $smtp->dataend();
  $smtp->quit;


The needed modules are installed via (accepting setup defaults))

perl -MCPAN -e shell
install CPAN
reload cpan
notest install Net::SSLeay
notest install IO::Socket::SSL
notest install Net::SMTP::TLS
notest install Authen::SASL
exit


When I try to send (ex to smtp.gmail.com) I get the following error(with 
newest IO::Socket::SSL):
*To use SSL please install IO::Socket::SSL with version>=2.007 at 
/usr/perl5/5.36/lib/Net/SMTP.pm line 68.*



btw
It works on OmniOS (Perl 5.36) and Solaris 11.4.
Maybe the in OI included Net::SMTP is the problem?


Gea
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] TLS Alerts and status mail problem from OpenIndiana

2023-01-23 Thread Udo Grabowski (IMK)

On 23/01/2023 13:26, g...@napp-it.org wrote:

I send TLS alerts and status mails via the following Perl script:
(napp-it menu Jobs > TLS > Test

  use Net::SMTP;
  use Authen::SASL qw(Perl);

  my $smtp = Net::SMTP->new("$server",
  SSL => 1,
  #Port => 587,
  Debug => 1,
  Hello => "smtp.gmail.com",
  Timeout => "30",) || die("could not connect to smtp-server");

  $smtp->auth("$user","$pw");

  

  $smtp->mail($from);

  $smtp->to($to);
  $smtp->data();
  $smtp->datasend("From: $from\n");
  $smtp->datasend("To: $to\n");

  $smtp->datasend("Subject: Test Email\n");
  $smtp->datasend("\n");
  $smtp->datasend("This is a test email sent over TLS with the STARTTLS
extension.\n");
  $smtp->dataend();
  $smtp->quit;


The needed modules are installed via (accepting setup defaults))

perl -MCPAN -e shell
install CPAN
reload cpan
notest install Net::SSLeay
notest install IO::Socket::SSL
notest install Net::SMTP::TLS
notest install Authen::SASL
exit


When I try to send (ex to smtp.gmail.com) I get the following error(with newest
IO::Socket::SSL):
*To use SSL please install IO::Socket::SSL with version>=2.007 at
/usr/perl5/5.36/lib/Net/SMTP.pm line 68.*


btw
It works on OmniOS (Perl 5.36) and Solaris 11.4.
Maybe the in OI included Net::SMTP is the problem?


Gea
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


On a current, updated system it's already > 2.007:

package IO::Socket::SSL;
our $VERSION = '2.080';

# pkg list library/perl-5/io-socket-ssl-536
library/perl-5/io-socket-ssl-536  2.80-2023.0.0.0i--

And this test (which is inside Net:SMTP) does not give a message:

# perl -MIO::Socket::SSL
my $ssl_class = eval {
  require IO::Socket::SSL;
  # first version with default CA on most platforms
  no warnings 'numeric';
  IO::Socket::SSL->VERSION(2.007);
} && 'IO::Socket::SSL';

my $nossl_warn = !$ssl_class &&
  'To use SSL please install IO::Socket::SSL with version>=2.007';

--
Dr.Udo Grabowski   Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology   http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] TLS Alerts and status mail problem from OpenIndiana

2023-01-23 Thread g...@napp-it.org

Many thanks.
A clean reinstall with gcc-7 solved the problem

Gea


On 23/01/2023 13:26, g...@napp-it.org wrote:

I send TLS alerts and status mails via the following Perl script:
(napp-it menu Jobs > TLS > Test

  use Net::SMTP;
  use Authen::SASL qw(Perl);

  my $smtp = Net::SMTP->new("$server",
  SSL => 1,
  #Port => 587,
  Debug => 1,
  Hello => "smtp.gmail.com",
  Timeout => "30",) || die("could not connect to smtp-server");

  $smtp->auth("$user","$pw");

  

  $smtp->mail($from);

  $smtp->to($to);
  $smtp->data();
  $smtp->datasend("From: $from\n");
  $smtp->datasend("To: $to\n");

  $smtp->datasend("Subject: Test Email\n");
  $smtp->datasend("\n");
  $smtp->datasend("This is a test email sent over TLS with the STARTTLS
extension.\n");
  $smtp->dataend();
  $smtp->quit;


The needed modules are installed via (accepting setup defaults))

perl -MCPAN -e shell
install CPAN
reload cpan
notest install Net::SSLeay
notest install IO::Socket::SSL
notest install Net::SMTP::TLS
notest install Authen::SASL
exit


When I try to send (ex to smtp.gmail.com) I get the following 
error(with newest

IO::Socket::SSL):
*To use SSL please install IO::Socket::SSL with version>=2.007 at
/usr/perl5/5.36/lib/Net/SMTP.pm line 68.*


btw
It works on OmniOS (Perl 5.36) and Solaris 11.4.
Maybe the in OI included Net::SMTP is the problem?


Gea
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


On a current, updated system it's already > 2.007:

package IO::Socket::SSL;
our $VERSION = '2.080';

# pkg list library/perl-5/io-socket-ssl-536
library/perl-5/io-socket-ssl-536  2.80-2023.0.0.0    i--

And this test (which is inside Net:SMTP) does not give a message:

# perl -MIO::Socket::SSL
my $ssl_class = eval {
  require IO::Socket::SSL;
  # first version with default CA on most platforms
  no warnings 'numeric';
  IO::Socket::SSL->VERSION(2.007);
} && 'IO::Socket::SSL';

my $nossl_warn = !$ssl_class &&
  'To use SSL please install IO::Socket::SSL with version>=2.007';


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



--
Guenther Ernst Alka
Dipl. Ing (FH)

Rektor-Klaus Str.71
73525 Schw. Gmünd
tel 07171 931393


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss