From patchwork Mon Feb 10 10:03:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Fleischer X-Patchwork-Id: 1500 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id EFEF316F753D1 for ; Mon, 10 Feb 2020 10:03:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on apollo.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001, T_DMARC_POLICY_NONE=0.01 autolearn=ham autolearn_force=no version=3.4.3 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Mon, 10 Feb 2020 10:03:23 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id B3B7418CBE3778; Mon, 10 Feb 2020 10:03:22 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: luna) by orion.archlinux.org (Postfix) with ESMTPSA id 7712818CBE3774; Mon, 10 Feb 2020 10:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1581329002; bh=VE4ryNfv2svPG7v1MNgezrVxfwTEGBLyClYo4UGTBPk=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=e7cAxSDfKnvVE6bY4j47Xl4kdmYbgiLWADmouq31f/3E3NxA2Rv7SeaGkIj0lWAte 0gfZb9+XiceBINovqkK/fDxqOjRG4wSGILrPaKcAHCy32BPcjr+G0cXumXh3IYC+mN 2FmTZHei5zoKoBJi2hKR6rSzaMRFfydd+7lVDjNWt0KTdoJW72eVEV6j2mDZMSgXep vub66FVxZLfo2zie1+KAFeOVKLgsjhm8G47jFJleXHQ1Z3GjwSBFSq/V4QCdKSAn17 PCYYtkF6bapl776Jbxy6yxIFJ5qP4KCtfuqIpkaZkm3AUTTUM8FB61kwoifVH6VBip pPKb1IzoIuO/xKMB9IQ6P3LVthPBK/all2KtStItEyZ/jSHem4au0UeyssZU8lamXa CP2AwonTPo4T9Yxw61SiZ7WiGoa/pQhqBVmNW0vxJF7idpCKzy+cWtrBXNGmWF/JJI gU3nyTbi3wtLGR1644djaThHNO1TuvfQzL0eQFg/I/ujhrMwM3J/m5+3fydALVxhPs NvKMlfYrZ54LQDxoyswhScqwGxws+XJ6vDQLZQg4AWGSfzR7z34reKOjLWOEYZvlM6 wf3xKl65MqHYjS2mDxaBlcQLVdQT0ZMqcJ7b5aF2L4n20zFu8aMMQMu87bCPVLhjED HE2Vmt7S+Zn+vE+OVjgt+NSw= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 86B6B2BFE6; Mon, 10 Feb 2020 10:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1581329000; bh=VE4ryNfv2svPG7v1MNgezrVxfwTEGBLyClYo4UGTBPk=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=WEGhw7pVR9Zmi2fNKPKI1CmzTDJ9Y9YP/EVGGPuI05gzdaBonVKdqJMbbDkmCEFzG VhFn57y3iO7v7MpN1Ca7nECuxSSXlSrFcgQ5depGfVaLod/q19B9auaqfQO02EFwpI i1OnQ6UcdenR+kGLVhECQ/JMZE0LUS54/R4FoILfLm3Td5BJmp5BJBAsCllSBRcI/9 vvnOkj8+wR8Sih+bmdrBf3R0T7XkK9f+6w4MnvDn0sZ+kKGg7rzHIyJNaK2R8rhFeV V0YGKu6kRrfdheoVq9iI+LHm4FS6PKVWHOjgIa+r3wrF7hPwMS4UB2KLUS75W0Uju4 eIjp7LzTpjSWX07RJ2klSYrX2MOGr5HMY5aG3L+j+iNzvpU05v8r6mVQwR0TEYwb/Z Sq1ZFiHkmGLmMLMblUsBQ7MdhoknZVaJ9Zy6EoOF5/qb/bzS3IvoCiBHj0sLXRRRsO V/5gwdQ+fizmwooIkSwzrW6SPsa0tjT71xua009/kSMZe4ONYpt/V4Zce/7hL4uZ2h sVQGIDffMej7HVpwAs3BonS9DYtkUGLQsHQTJq6pzjDeFU9UW/f/RQhvROXZFCuzfa ahDFnVjRtnaxNA+w9WLznFNCLWAZaaQCcHKLs2OSdG6M3gy5+dg8Hq2janW4yy92ld 1fN3+6pIBnqolNHBo83Z1xN8= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id CA2ED2BFE6 for ; Mon, 10 Feb 2020 10:03:17 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Mon, 10 Feb 2020 10:03:17 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 513F818CBE3766 for ; Mon, 10 Feb 2020 10:03:11 +0000 (UTC) Received: from localhost (unknown [IPv6:2a02:8070:24e4:b800:b66b:fcff:fe3e:6273]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: lfleischer) by orion.archlinux.org (Postfix) with ESMTPSA id AFEAC18CBE3765 for ; Mon, 10 Feb 2020 10:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1581328990; bh=VE4ryNfv2svPG7v1MNgezrVxfwTEGBLyClYo4UGTBPk=; h=From:To:Subject:Date; b=l5MklAWEv2LxjQNMLQEsc35zv7DBkryjXP816cvtKUoElrWgr3exork2DxWYGGXFn 0s1onzGU2jvB1Tj/BqRBMRl7MP71FF1QCI8EldOu52sqCBulCzRvLpHSP/x+KL6FER RpUI72LVr5qo90iOFugev6PIPCDuRNE44luRUQIzfhpPR0D1xif8Z2YULv77YjhZUn 1+pg30B6ZJIHZPz7lIbBHePLYBzLSEPhKyb+mgCC90xhublqhqw8fZVnO5QrLQToDJ RGqeL2S+MW6hJdfeYZRcqzLeUqSXT6mPR+D1CP68rAFalVruj/haTPF7GyEXNQdaX9 ZKSW3o5Tj19ZOFpZS8Uk+ZIgxVbcg/2TJsrkGUk6D+jD+9RIGVAY9TXni+rtRUyRY/ fW7sWgj+A3BxyR3zxuX3eY0yVB4atTzJEURocwQ81y4rOF0szqLouaJVRQ0nyoA9vY vOTB0zPfh87Ijs1qkWxYuX9DstEFcS7/wViuxk+U1db7kQUHggfDSyJcF1NrzBOsLS igGtsaxKFstSPPLqEGmlMCOErQ57uNitRbrWz1roXcjgeTYwZDdYJHOVcTRiexkiAn XZSSOJ7LADv27m1jVIFoUpHO5zyL6nqoR897x/LFI3yQzglnOsWdO0eMBlH+mwf2+y Y6UPaMlCfGQzk32VbFBSyMak= From: Lukas Fleischer To: aur-dev@archlinux.org Subject: [PATCH v3 1/2] Support smtplib for sending emails Date: Mon, 10 Feb 2020 11:03:27 +0100 Message-Id: <20200210100328.75985-1-lfleischer@archlinux.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-BeenThere: aur-dev@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Arch User Repository \(AUR\) Development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: aur-dev-bounces@archlinux.org Sender: "aur-dev" Support mail delivery without a local MTA. Instead, an SMTP server can now be configured using the smtp-server option in the [notifications] section. In order to use this option, the value of the sendmail option must be empty. Signed-off-by: Lukas Fleischer --- Reintroduce the option to use a local sendmail binary (needed for the test suite) and only use smtplib if no such binary is configured. aurweb/scripts/notify.py | 22 ++++++++++++++++++---- conf/config.defaults | 3 ++- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py index b0f218b..941187e 100755 --- a/aurweb/scripts/notify.py +++ b/aurweb/scripts/notify.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 import email.mime.text +import email.utils +import smtplib import subprocess import sys import textwrap @@ -63,7 +65,6 @@ class Notification: return body.rstrip() def send(self): - sendmail = aurweb.config.get('notifications', 'sendmail') sender = aurweb.config.get('notifications', 'sender') reply_to = aurweb.config.get('notifications', 'reply-to') reason = self.__class__.__name__ @@ -79,13 +80,26 @@ class Notification: msg['Reply-to'] = reply_to msg['To'] = to msg['X-AUR-Reason'] = reason + msg['Date'] = email.utils.formatdate(localtime=True) for key, value in self.get_headers().items(): msg[key] = value - p = subprocess.Popen([sendmail, '-t', '-oi'], - stdin=subprocess.PIPE) - p.communicate(msg.as_bytes()) + sendmail = aurweb.config.get('notifications', 'sendmail') + if sendmail: + # send email using the sendmail binary specified in the + # configuration file + p = subprocess.Popen([sendmail, '-t', '-oi'], + stdin=subprocess.PIPE) + p.communicate(msg.as_bytes()) + else: + # send email using smtplib; no local MTA required + server_addr = aurweb.config.get('notifications', 'smtp-server') + + server = smtplib.SMTP(server_addr) + server.set_debuglevel(1) + server.sendmail(sender, recipient, msg.as_bytes()) + server.quit() class ResetKeyNotification(Notification): diff --git a/conf/config.defaults b/conf/config.defaults index c519eae..23d46b0 100644 --- a/conf/config.defaults +++ b/conf/config.defaults @@ -47,7 +47,8 @@ window_length = 86400 [notifications] notify-cmd = /usr/local/bin/aurweb-notify -sendmail = /usr/bin/sendmail +sendmail = +smtp-server = localhost sender = notify@aur.archlinux.org reply-to = noreply@aur.archlinux.org From patchwork Mon Feb 10 10:03:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Fleischer X-Patchwork-Id: 1501 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 5B29E16F753E0 for ; Mon, 10 Feb 2020 10:03:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on apollo.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001, T_DMARC_POLICY_NONE=0.01 autolearn=ham autolearn_force=no version=3.4.3 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Mon, 10 Feb 2020 10:03:28 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 7966318CBE3790; Mon, 10 Feb 2020 10:03:24 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: luna) by orion.archlinux.org (Postfix) with ESMTPSA id E887A18CBE3787; Mon, 10 Feb 2020 10:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1581329003; bh=Ff18mXpEyf1JB7uiu3pZMa3eYOoP40tQBFXz3yGqq28=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=iJBbE8jEoMBXSnxHYCFMVPPtDetW2QlHUBkNrpQ8CXoet/jnFvdgSCcE28jmRhmFR skpbvPq6LvM4Aeuev+d8ENufXlMt7ycmUlhQPkreqsoR7Gzx7Zsk79AwnjSnHQRA5Q 18nXEjNYM7ImzEoAiOhcC7B8P/Q7ROZfkZ3Shn7ZRYBIuM0gHZr0Vxw6LBBK50PvBv tL20zFR8INEBnQg/5uU6zkOJZnOOc7xM1GtljHyhQz70e+X5SD90r6uqpXKxF5ABdg aFfh4rvhxOed7hTUcW11opzmS2L/b6G8lakTa8LxOA6zWTnvXy33NaZplj/xvLHxRR BhwyFKKd7NnvjuoIKTE1ISE18xL61JkaiUHKYl7VYP2MhKGuJeoKyc07P8Y3ApuT3j +KQ0nMIG9KQZ0XAbs1iSV7GRoj4EpVKJxKaJBeiLHr5dOb/yUyBhiuWdvVcDWYXDG2 b7ZpVgwszg5ViWvCl8pPjjhEWZGznW2M3ibEJ4IYcO+5eJ9iK9PXWMXRWG0GYDaK1K TEvvWxGJEs47HHkb++TaXlCXg4KRHSN1pHfftxoR48qMZA5O3CQe70q555217yRCk7 9qCBkkG3DyR+d7l+p4YP03F3Pgi7eDqcRUGOW4cOFMAtHQGkfOGlT/7EYqY6s2CPRb ZoXOR4WJz4ZpowZ+MjK+L+5k= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id B61832BFE6; Mon, 10 Feb 2020 10:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1581329003; bh=Ff18mXpEyf1JB7uiu3pZMa3eYOoP40tQBFXz3yGqq28=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=toGeUsfRydixtbF6mVc/UVAag5rJxxE4pNbE0I/hI0qaGlUFwIAUrWWA1ErBf1oP1 EkdCye4MRj2w/oJ0fb4P8n7t7WgKgDK6mZXjmw9qZ5HQnikDbN2naLiZ6/qHUWkOQg cqEaZ93fmZufA88BbfwIhSgLKfHx7/2n2GT9pier9fyJ/m2hWDl4gv0VvUsH1coJlY oihpxV/1WuiNuRfn005U6b37S9gdrahTRBDggHXi4gzxoMKkxA5baLZyQLmB+yNRW2 AfPM5xHcEYO63dVKczgjkzOdUZ/i+Rde4rRYJO2Wa9OB5nQ221encd0aiiU/Lei1Sz t3JQRqIFQAS4uX4PCN0l1pjx+IgB4V0mXdHqsRxxIBmPRO5vwkwgVdBdszBLDQMphK OWTntFjDx8Ny+gA31F49cpcO12LPZjqc8vQgyHmS+BqKNQuWKs3ME1qHQ99+Zs54KT Jrubtdn2QdD1TwMk2l9fko7Mwt+06WnKPlQQG+9tZz8Eg2RtEIZgHaIqQhg9VhWyyN lXN+QDROrhJbukjdsXkdk2w++HR3Sq0B0z3mjyQCIaiFDvdSpMTllZAA7rAswwBMfB ZBJrphJ/SAhyNGp1WVllFZLjHbqj8h4wIM63W+mUemPMbezXY/ky4KYbhjh+Zsjtjc w7XngMhTmyckZuEjTneP3N4Y= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id F043F2BFEA for ; Mon, 10 Feb 2020 10:03:20 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Mon, 10 Feb 2020 10:03:20 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 56EEB18CBE376B for ; Mon, 10 Feb 2020 10:03:15 +0000 (UTC) Received: from localhost (unknown [IPv6:2a02:8070:24e4:b800:b66b:fcff:fe3e:6273]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: lfleischer) by orion.archlinux.org (Postfix) with ESMTPSA id 0269718CBE376A for ; Mon, 10 Feb 2020 10:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1581328995; bh=Ff18mXpEyf1JB7uiu3pZMa3eYOoP40tQBFXz3yGqq28=; h=From:To:Subject:Date:In-Reply-To:References; b=DvsVa98leqY8Z0y+zp6Nw2F+JXftmrMX7RUqStGyyEvR+BRAybBmgfUcrL1yULkJL +HcitvJ5Dr5++3Q5fGWxR+FVDUGlNlXRDRzXOsG8yq5GqSPno3n3UFaErHhh85L7Cp d1HLlS6J3GZJCu0+FxFSNjUYxaybQmsXbmoG8GSXwyCh4B2Q5TtfA/m0+KfXVhufSD fCq286QX115A5QkKjzz5cWUEmhCPlhjB4cMf+yNBklIZ6Bl0x6pcxXpQSSg3Kwf634 l4n6CL7qzYlQLhPD4qysMRu4zMh7DXabb/GwyApgu5k+MtCe4fu7iaJhByGKBCkeUo JXICqqgxHPoa2usOS1Q7ZzJXeQ9LP2Vr66hZjaEZIGqjDLTEvnbLT72xwMknkWr4lm C0i6rMwwHMLKjppJNVWFE3B4CvXDvRpatP2u/5JG5NJRLbP/lDzXJxGDVxdjy75Jk7 cBSQjV+UO33RZP9FwgERxBYYIT83+P0tcHN0cYd0ssyrTNFPDUPabDla3FW9G1tqhR GgIE4qGYX7dkTkMKxRa3GzBsIXks1FPMrmzOAHA95J5t//8d9Nozihn9QPITPdKUFM srf/QcSCYIvR52Y5sPOVPp3iazO57634TNl41xdd14TVroBmGFuqwaduepY7WIPIFQ C/OOdGyQyoOarSr+5XECxRAY= From: Lukas Fleischer To: aur-dev@archlinux.org Subject: [PATCH v3 2/2] Make SMTP port and authentication configurable Date: Mon, 10 Feb 2020 11:03:28 +0100 Message-Id: <20200210100328.75985-2-lfleischer@archlinux.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210100328.75985-1-lfleischer@archlinux.org> References: <20200210100328.75985-1-lfleischer@archlinux.org> MIME-Version: 1.0 X-BeenThere: aur-dev@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Arch User Repository \(AUR\) Development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: aur-dev-bounces@archlinux.org Sender: "aur-dev" Add more options to configure the smtplib implementation for sending notification emails. The port can be changed using the new smtp-port option. Encryption can be configured using smtp-use-ssl and smtp-use-starttls. Keep in mind that you usually also need to change the port when enabling either of these options. Authentication can be configured using smtp-user and smtp-password. Authentication is disabled if either of these values is empty. Signed-off-by: Lukas Fleischer --- aurweb/scripts/notify.py | 20 +++++++++++++++++++- conf/config.defaults | 5 +++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py index 941187e..3417721 100755 --- a/aurweb/scripts/notify.py +++ b/aurweb/scripts/notify.py @@ -65,6 +65,7 @@ class Notification: return body.rstrip() def send(self): + sendmail = aurweb.config.get('notifications', 'sendmail') sender = aurweb.config.get('notifications', 'sender') reply_to = aurweb.config.get('notifications', 'reply-to') reason = self.__class__.__name__ @@ -95,8 +96,25 @@ class Notification: else: # send email using smtplib; no local MTA required server_addr = aurweb.config.get('notifications', 'smtp-server') + server_port = aurweb.config.getint('notifications', 'smtp-port') + use_ssl = aurweb.config.getboolean('notifications', 'smtp-use-ssl') + use_starttls = aurweb.config.getboolean('notifications', 'smtp-use-starttls') + smtp_user = aurweb.config.get('notifications', 'smtp-user') + smtp_passwd = aurweb.config.get('notifications', 'smtp-password') + + if use_ssl: + server = smtplib.SMTP_SSL(server_addr, server_port) + else: + server = smtplib.SMTP(server_addr, server_port) + + if use_starttls: + server.ehlo() + server.starttls() + server.ehlo() + + if user and password: + server.login(user, passwd) - server = smtplib.SMTP(server_addr) server.set_debuglevel(1) server.sendmail(sender, recipient, msg.as_bytes()) server.quit() diff --git a/conf/config.defaults b/conf/config.defaults index 23d46b0..b69d031 100644 --- a/conf/config.defaults +++ b/conf/config.defaults @@ -49,6 +49,11 @@ window_length = 86400 notify-cmd = /usr/local/bin/aurweb-notify sendmail = smtp-server = localhost +smtp-port = 25 +smtp-use-ssl = 0 +smtp-use-starttls = 0 +smtp-user = +smtp-password = sender = notify@aur.archlinux.org reply-to = noreply@aur.archlinux.org