• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC [MyACC] [POSTFIX] [SquirrelMail] Problem with configuring the mail system

Haskys

Member
Joined
Jul 19, 2019
Messages
97
Reaction score
8
Location
Poland
Hello,

When creating an account on MyACC receives the message:

Code:
An error occorred while sending email ([email protected])! Error:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
More info in system/logs/error.log

Error.log:

Code:
[Thu, 01 Aug 2019 18:59:20 +0200] [createaccount.php] An error occorred while sending email: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting. Error: Array
(
    [type] => 2
    [message] => fsockopen(): unable to connect to my_ip:7171 (Connection refused)
    [file] => /var/www/html/system/libs/pot/OTS_ServerInfo.php
    [line] => 61
)

Mail system:
Front: SquirrelMail
Back: postfix

By sending emails from SquirrelMail they are delivered to the recipient.

Configuration of config file by recommendations from:

Could someone help in this regard?

Haskys,
 
try setting smtp_enabled to false.

and smtp_auth to false.

Thank you for your response.
It worked because I have another message:

Code:
An error occorred while sending email ([email protected])! Error:
Could not instantiate mail function.
More info in system/logs/error.log

Error.log

Code:
[Thu, 01 Aug 2019 22:50:42 +0200] [createaccount.php] An error occorred while sending email: Could not instantiate mail function.. Error: Array
(
    [type] => 8
    [message] => Undefined variable: config
    [file] => /var/www/html/system/functions.php
    [line] => 12
)

functions.php 1 - 20 lines

PHP:
/**
 * Useful functions
 *
 * @package   MyAAC
 * @author    Slawkens <[email protected]>
 * @copyright 2017 MyAAC
 * @link      http://my-aac.org
 */
defined('MYAAC') or die('Direct access not allowed!');

if($config['smtp_enabled'])
{
    $mailer->IsSMTP();
    $mailer->Host = $config['smtp_host'];
    $mailer->Port = (int)$config['smtp_port'];
    $mailer->SMTPAuth = $config['smtp_auth'];
    $mailer->Username = $config['smtp_user'];
    $mailer->Password = $config['smtp_pass'];
    $mailer->SMTPSecure = $config['smtp_secure']; // Here
}

Any ideas?

Haskys
 
We managed to configure so that MyAcc would show that the message was sent.

Code:
These informations were send on email address [email protected].

However, during the postfix reconfiguration, myacc etc. a change was made, which meant that sending messages from Squirrel is not possible.

Code:
ERROR:
Message not sent. Server replied:
Requested action aborted: error in processing
451 4.3.0 <[email protected]>: Temporary lookup failure

So that's probably why I do not get messages from MyAcc.
Can you help in configuring the postfix itself?
 
Mailservers like Postfix and Dovecot are a pain in the ass to set up and to maintain.
There are always different errors on different servers even if there is technically not much of a difference. They always find something to complain about.
Since this is not a OT specific problem, I would suggest you to google the problem. Others have had it before as well. Not every solution will work for you, but eventually you will figure it out.

Different possibilities might be:
your resolv.conf makes problems. Try if resolving at all works using dig otland.net
your aliases of the webserver aren't set up correctly
check your transport maps

google is your friend :)
 
Back
Top