[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sendmail on debian testing



 Hi.

On Tue, Feb 03, 2015 at 11:07:37PM +0000, Michael Grant wrote:
> On Tue, Feb 3, 2015 at 6:16 PM, Reco <recoverym4n@gmail.com> wrote:
>     > I don't know if this has anything to do with that:
>     >
>     > # systemctl enable sendmail
>     > Synchronizing state for sendmail.service with sysvinit using update-rc.d...
>     > Executing /usr/sbin/update-rc.d sendmail defaults
>     > Executing /usr/sbin/update-rc.d sendmail enable
>     >
>     > # systemctl is-enabled sendmail
>     > Failed to get unit file state for sendmail.service: No such file or directory
> 
>     No, it doesn't have anything with it.
> 
>     Systemd uses it's own way to define a service called a 'service unit'.
>     Presumably, systemd has something for the compatibility with old init
>     (aka sysvinit), which *should* start those /etc/init.d/ scripts just as
>     good as if sysvinit itself would do it. Well, now we see how well it
>     works in the reality :)
> 
> 
>     Ok, let's try something different then - based on [1]. Try creating the
>     file called /etc/systemd/system/sendmail.service with the following
>     contents:
> 
>     ###cut###
> 
>     [Unit]
>     Description=Sendmail Mail Transport Agent
>     After=syslog.target network.target
>     Conflicts=postfix.service exim.service
> 
>     [Service]
>     Type=forking
>     PIDFile=/run/sendmail.pid
>     Environment=SENDMAIL_OPTS=-q1h
>     EnvironmentFile=-/etc/default/sendmail
>     ExecStartPre=-/etc/mail/make
>     ExecStartPre=-/etc/mail/make aliases
>     ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG
> 
>     [Install]
>     WantedBy=multi-user.target
> 
>     ###cut###
> 
> 
>     Revert the _SYSTEMCTL_SKIP_REDIRECT change, see how it goes now.
>     This unit file may require tweaking in $SENDMAIL_OPTS $SENDMAIL_OPTARG
>     part - I'm unable to check now what kind of variables are sourced by
>     /etc/default/sendmail.
>    
> 
> Ok, I tried creating that file and removing the line from /etc/default/sendmail.  It still did not come up when the machine booted.

 Oh, but did you run 'systemctl enable sendmail' after creating the
file? Because if you did - I'm out of ideas, sorry.

Reco


Reply to: