Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 1B51C782B06 for <~alpine/users@lists.alpinelinux.org>; Sun, 8 Dec 2019 07:08:49 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id m6so12095521ljc.1 for <~alpine/users@lists.alpinelinux.org>; Sat, 07 Dec 2019 23:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=w0qnjd7S7koSl+thZQX9uyh3Ng5aHdEhnA2TsorOzDg=; b=tffl+c60GD/3kMfSkIa2uRBngnbo1+G6XE2Q1plJBdp+GmqaUcQ1opa2rBFS7QE338 IH7GaDIyrRz2xMVO3Zyvos6/5gN5On1ivkgG1uwxtIFKzpNU2Jyr0zMOskpSsbx0HmLq vmCH/0QhJPdgHJATdNpE0ho4rt0WFDnI6l48U2U2RSGiGOG5WZVeeAt4ZnYjS+ELj9Wx 1xlNWvUgJ9vVHQ9750CRxAq8Ls87FFoo4WiAWC1bPVdvBuSq4N/K18t3Tb9/enKJ1tfp V1Qlwd3iV3EIpKad3HrIc96zhOGradG7GYLCCAmdLXbmmlfi5oi4eNkyM6E6gpd0he09 ZdeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w0qnjd7S7koSl+thZQX9uyh3Ng5aHdEhnA2TsorOzDg=; b=avnojHfcYldSAe98vR4rQldM1z3EcoUWOuKJvzzIn0nFm7FC4TYnPByILJMLtI/S7T kCkZ6dh912CY5qWEKhn02iP46yHJv8Vh8LQRKXVcC8A6yc80cG8A/DE9VdMnYVBylM2S gyaemO7j+zBgoyHGPHN6+Egkdmp2Hda2VzPHDc2rNtjpvaaVWCuK10FCVFtUmMxUTDDc JthUMNLYmdWsFqa10DgHfm8DNMEBNK4cea0hA3jQqVmpLe1g0bWZvkjzT8M3qY8/L8FM 15qUw0+8KFSzeceY0VYlq2EJJDdvVw/Zz9q9b1rnxLTpSZ9jXL+9DYOl656B4I6Hrbkf xW1Q== X-Gm-Message-State: APjAAAUk+UP0DlvLEOii0LA6ZBoETAXck0Fr9zkBtFWhjSnMc2a+gnQL xKabepO4F8LYsh3h+1GFbfSKtn16 X-Google-Smtp-Source: APXvYqzoM/+VNP0pSKI09y6sC8T+o08QLfg4dfDS6JUlBf3NqgYLhJbz/hdvUQiRO40IIHyht8k+9g== X-Received: by 2002:a2e:b0c4:: with SMTP id g4mr13146077ljl.83.1575788928171; Sat, 07 Dec 2019 23:08:48 -0800 (PST) Received: from kpc.kaey.ru ([91.123.18.165]) by smtp.gmail.com with ESMTPSA id n3sm8944161lfk.61.2019.12.07.23.08.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Dec 2019 23:08:47 -0800 (PST) Subject: Re: msmtpd startup setup? To: BZ , ~alpine/users@lists.alpinelinux.org References: From: Konstantin Kulikov Message-ID: Date: Sun, 8 Dec 2019 10:08:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 12/8/19 12:00 AM, BZ wrote: > I saw msmtp mentioned some time ago on this mailing list for setting > up local mail on Alpine. I'm finding that it works really nicely, is > light and cooperates with Gmail and other SMTP services perfectly. > > Its msmtpd service is really nice, but the Wiki is lacking > instructions on how to set it up in init.d: > https://wiki.alpinelinux.org/wiki/Relay_email_to_gmail_(msmtp,_mailx,_sendmail > > Could someone please elaborate on how to set msmtpd to start up with > the system at boot and to run it on a specific port? > > I can run it fine like this: msmtpd --interface=172.17.0.1 --port=26& > > But I'm finding I have to start it manually each time I reboot the system. > Looks like msmtp package comes without init.d script. Check out https://github.com/OpenRC/openrc service-script-guide.md, supervise-daemon-guide.md, user-guide.md and man pages in openrc-doc, look at existing /etc/init.d scripts than write one yourself and contribute it to alpine (see https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package).