Skip to main content
14 events
when toggle format what by license comment
Oct 27, 2016 at 13:45 comment added GAD3R If you don't get an error like Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended. it is not required
Oct 27, 2016 at 13:43 vote accept chmike
Oct 27, 2016 at 13:39 comment added chmike Ok. It works. I overwrote the /lib/systemd/system/dovecot.socket file with the commented out lines with 143 ports. Then the reeanable was required because it doesn't simply create a link. Apparently systemd updates its state. After that netstat showed dovecot instead of init. Don't know if the systemctl daemon-reload is required.
Oct 27, 2016 at 13:27 comment added chmike The copy is not needed. I should apparently directly modify/replace /lib/systemd/system/dovecot.socket. Then we don't need the reenable because there is already a link in /etc/systemd/system/socket.target.wants to this dovecot.socket file.
Oct 27, 2016 at 13:08 comment added GAD3R Copy then symlink , stop and start service
Oct 27, 2016 at 13:05 comment added chmike Is it equivalent to copy a file with lines :143 commented out into /ect/systemd/system, then reeanable, then stop, start, daemon-reload ?
Oct 27, 2016 at 13:02 history edited GAD3R CC BY-SA 3.0
added 35 characters in body
Oct 27, 2016 at 12:57 comment added chmike What should be the permissions of the /etc/systemd/system/dovecot.socket ? Is it ok to be root:root 0644 or should it be 0666 ? I'm slow because I use ansible and edit the script. I also double check everything ;)
Oct 27, 2016 at 12:40 comment added GAD3R it will e created after runing : systemctl reenable dovecot.socket
Oct 27, 2016 at 12:37 comment added chmike I'll try it. It seam more appropriate to create a symbolic link ln -s /lib/systemd/system/dovecot.socket /etc/systemd/system as this is what has been done for ssh I see.
Oct 27, 2016 at 12:31 comment added GAD3R I have test it on my debian jessie . Can you try it ?
Oct 27, 2016 at 12:29 comment added GAD3R Yes it will comment out lines with port 143
Oct 27, 2016 at 12:27 comment added chmike Why do you tell me to install dovecot-pop3d if I only need and use imaps ? Does the sed line simply comment out lines with port 143 ?
Oct 27, 2016 at 12:03 history answered GAD3R CC BY-SA 3.0