1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-13 12:27:34 +00:00

Ports: Add ssmtp port

This commit is contained in:
Fabian Dellwing 2023-04-25 19:59:27 +02:00 committed by Jelle Raaijmakers
parent 1951f7874d
commit 8f34478e75
7 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,63 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Fabian Dellwing <fabian.dellwing@gmail.com>
Date: Fri, 28 Apr 2023 07:43:47 +0200
Subject: [PATCH] Use generic default configuration
Make the installation fully non-interactive and create a sane
default ssmtp.conf
---
generate_config | 37 ++-----------------------------------
1 file changed, 2 insertions(+), 35 deletions(-)
diff --git a/generate_config b/generate_config
index a16efd46b88829a987935be2f1a920416aa19599..d09cd177d3a4c057d93e96d225a12fee4a2b9026 100755
--- a/generate_config
+++ b/generate_config
@@ -1,37 +1,4 @@
-#!/bin/sh -e
-
-#
-# Figure out the system's mailname
-#
-
-syshostname=`hostname --fqdn`
-if test -f /etc/mailname
-then
- mailname="`head -1 /etc/mailname`"
-fi
-
-if test -z "$mailname"
-then
- mailname=$syshostname
-fi
-
-echo "Please enter the mail name of your system."
-echo "This is the hostname portion of the address to be shown"
-echo "on outgoing news and mail messages headers."
-echo "The default is $syshostname, your system's host name."
-echo
-echo -n "Mail name [$syshostname]: "
-read mailname
-echo
-
-echo -n "Please enter the SMTP port number [25]: "
-read smtpport
-if test -z "$smtpport"
-then
- mailhub=$mailhub
-else
- mailhub="$mailhub:$smtpport"
-fi
+#!/bin/bash -e
#
# Generate configuration file
@@ -56,7 +23,7 @@ mailhub=mail
# Where will the mail seem to come from?
#rewriteDomain=`echo -n $mailname`
# The full hostname
-hostname=`hostname --fqdn`
+hostname=courage
EOF
echo