mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
Adding an option to configure the hostname in HELO when sending emails from Postfix Admin
This commit is contained in:
parent
16b3615fcd
commit
7778c0b9c6
@ -125,6 +125,11 @@ $CONF['admin_email'] = '';
|
|||||||
$CONF['smtp_server'] = 'localhost';
|
$CONF['smtp_server'] = 'localhost';
|
||||||
$CONF['smtp_port'] = '25';
|
$CONF['smtp_port'] = '25';
|
||||||
|
|
||||||
|
// SMTP Client
|
||||||
|
// Hostname (FQDN) of the server hosting Postfix Admin
|
||||||
|
// Used in the HELO when sending emails from Postfix Admin
|
||||||
|
$CONF['smtp_client'] = 'localhost.localdomain';
|
||||||
|
|
||||||
// Encrypt
|
// Encrypt
|
||||||
// In what way do you want the passwords to be crypted?
|
// In what way do you want the passwords to be crypted?
|
||||||
// md5crypt = internal postfix admin md5
|
// md5crypt = internal postfix admin md5
|
||||||
|
@ -1136,7 +1136,7 @@ function smtp_mail ($to, $from, $data, $body = "") {
|
|||||||
$smtpd_server = $CONF['smtp_server'];
|
$smtpd_server = $CONF['smtp_server'];
|
||||||
$smtpd_port = $CONF['smtp_port'];
|
$smtpd_port = $CONF['smtp_port'];
|
||||||
//$smtp_server = $_SERVER["SERVER_NAME"];
|
//$smtp_server = $_SERVER["SERVER_NAME"];
|
||||||
$smtp_server = php_uname("n");
|
$smtp_server = $CONF['smtp_client'];
|
||||||
$errno = "0";
|
$errno = "0";
|
||||||
$errstr = "0";
|
$errstr = "0";
|
||||||
$timeout = "30";
|
$timeout = "30";
|
||||||
|
Loading…
Reference in New Issue
Block a user