Not able to send mails from postfixadmin even the welcome mail
config.local.php :
<?php
$CONF['database_type'] = 'pgsql';
$CONF['database_host'] = 'postgres';
$CONF['database_port'] = '5432';
$CONF['database_user'] = 'xyz';
$CONF['database_password'] = 'xyz';
$CONF['database_name'] = 'xyz';
$CONF['smtp_server'] = 'xyz.com';
$CONF['smtp_port'] = '587';
$CONF['configured'] = true;
$CONF['dkim'] = 'NO';
$CONF['dkim_all_admins'] = 'NO';
$CONF['setup_password'] = '$2y$10$PJrHLu0mPoE8tQx/zTzJvu61FWgqeOZGIbl2yPCzj10j1.l8mA4L.';
?>
Logs from mailserver :
Mar 21 01:29:18 mail postfix/submission/smtpd[1927]: connect from postfixadmin.mailserver_mailnetwork[172.18.0.4]
Mar 21 01:29:18 mail postfix/submission/smtpd[1927]: warning: non-SMTP command from postfixadmin.mailserver_mailnetwork[172.18.0.4]: To: [email protected]
Mar 21 01:29:18 mail postfix/submission/smtpd[1927]: disconnect from postfixadmin.mailserver_mailnetwork[172.18.0.4] ehlo=1 mail=0/1 rcpt=0/1 data=0/1 unknown=0/1 commands=1/5
Can Anyone help me with what could be the issue and what to look for. I am able to send and recive via webmail but issue with postfixadmin
If i cahnge $CONF['smtp_port'] = '587'; to $CONF['smtp_port'] = '25; I am able to send mails but why not with 587
also for external domains I cant send as port 25 is blocked from them so need to switch to 587 can anyone help me in this?
Thanks in advance
logs :
Mar 21 02:02:22 mail postfix/smtpd[2093]: connect from postfixadmin.mailserver_mailnetwork[172.18.0.4]
Mar 21 02:02:22 mail postfix/smtpd[2093]: NOQUEUE: reject: RCPT from postfixadmin.mailserver_mailnetwork[172.18.0.4]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<a80502f57671>
Mar 21 02:02:22 mail postfix/smtpd[2093]: warning: non-SMTP command from postfixadmin.mailserver_mailnetwork[172.18.0.4]: To: [email protected]
Mar 21 02:02:22 mail postfix/smtpd[2093]: disconnect from postfixadmin.mailserver_mailnetwork[172.18.0.4] ehlo=1 mail=1 rcpt=0/1 data=0/1 unknown=0/1 commands=2/5
Hi -
Technically your problem is more of a postfix configuration issue, rather than one with postfixadmin.
You need to configure postfix to accept (and relay) mail sent from your postfixadmin server. The easiest way to do this is add the sending server to postfix's 'mynetworks' list - alternatively you need to setup authenticated smtp (so the caller (postfixadmin) authenticates with postfix before sending an email).