AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Cannot manage sendmail process with SRC

    Posted Thu September 29, 2022 06:26 AM
    I have installed sendmail (sendmail-8.17.1-2.aix6.1.ppc.rpm) from "AIX Toolbox for Open Source Software" on AIX.

    I would like to use SRC to manage the start and stop of this sendmail.
    However, as shown below, the SRC cannot detect the started sendmail process, so I cannot display the status (lssrc) or stop the process (stopsrc).

    Is it possible to manage sendmail with SRC?


    VERSION
    # oslevel -s
    7200-05-04-2220
    
    # /opt/freeware/sbin/sendmail -d0 < /dev/null
    Version 8.17.1
     Compiled with: DANE DNSMAP HES_GETMAILHOST IPV6_FULL LDAPMAP
                    LDAP_NETWORK_TIMEOUT LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
                    MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB=5.3 NIS
                    PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS TLS_EC
                    TLS_VRFY_PER_CTX USERDB USE_LDAP_INIT

    ADD TO SRC
    # mkssys -s sendmail.oss -p /opt/freeware/sbin/sendmail -G mail -u 0 -a "-bd -q15m" -O
    0513-071 The sendmail.oss Subsystem has been added.

    START SENDMAIL
    # lssrc -s sendmail.oss
    Subsystem         Group            PID          Status
     sendmail.oss     mail                          inoperative
    # ps -ef | grep sendmail | grep -v grep
    # startsrc -s sendmail.oss
    0513-059 The sendmail.oss Subsystem has been started. Subsystem PID is 24117606.
    # lssrc -s sendmail.oss
    Subsystem         Group            PID          Status
     sendmail.oss     mail                          inoperative
    # ps -ef | grep sendmail | grep -v grep
        root 18678230        1   0 15:11:41      -  0:00 sendmail: accepting connections
    # stopsrc -s sendmail.oss
    0513-004 The Subsystem or Group, sendmail.oss, is currently inoperative.

    Note: The status is "inoperative" after the process is started, but the sendmail process exists.



    ------------------------------
    Ryota Kinashi
    ------------------------------


  • 2.  RE: Cannot manage sendmail process with SRC

    Posted Thu September 29, 2022 07:16 AM
    If  i were you, i would stay with the aix provided sendmail until there is a VERY special reason to use the rpm.

    here is the aix standard src defintion for sendmail, maybe this helps.

    root@nimvie: /root # lssrc -Ss sendmail
    #subsysname:synonym:cmdargs:path:uid:auditid:standin:standout:standerr:action:multi:contact:svrkey:svrmtype:priority:signorm:sigforce:display:waittime:grpname:
    sendmail:::/usr/lib/sendmail:0:0:/dev/console:/dev/console:/dev/console:-R:-Q:-K:0:0:20:0:0:-d:20:mail:
    ​


    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: Cannot manage sendmail process with SRC

    Posted Thu September 29, 2022 08:29 PM
    Thanks for your reply.
    I too would like to use sendmail provided by AIX. But unfortunately, I have to use sendmail that supports SASL & TLS on AIX 7.2, so I am forced to use rpm.

    * SASL support is available from AIX 7.3
    https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=118449

    For the rpm version, do you think it is better to start sendmail directly without SRC?

    ------------------------------
    Ryota Kinashi
    ------------------------------