-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postfix losing connection #829
Comments
Hi - This isn't a general postfix help forum. Postfixadmin is a web interface for managing mailboxes/aliases/domains that integrates with Postfix. Your question will probably be answered better elsewhere (e.g stackoverflow). Having said that .... Assuming your problem is the disconnect from 152.32.227.252 then ... unless your script is doing SMTP + auth, it isn't going to get far. Your postfix config above will tell the server to accept mail from localhost without question, but not from anywhere else. Which probably explains why your script worked locally. To fix this either, add the 152.... IP into mynetworks in postfix's main.cf and restart postfix - but only do that if you absolutely trust that server. If you don't trust the 152... IP (or the server's IP isn't static) then you need to make sure your script is doing SMTP+Auth - e.g if your script was written in PHP AND using SwiftMailer ... you might have something along the lines of this in it : $transport = new Swift_SmtpTransport("your.mail.server", "25"); // note: plain text, should move to tls etc
$transport->setUsername('something');
$transport->setPassword('password');
$mailer = new Swift_Mailer($transport);
$message = new Swift_Message('some subject');
$message->setBody('test');
$message->setFrom('me@example.com');
$message->setTo('my.recipient@example.com');
$mailer->send($message); This may also require significant changes to your postfix server's configuration - so it would know where to lookup users (which is where Postfixadmin could fit in). You might find it easiest however just using the system passwd file etc - see also https://www.postfix.org/VIRTUAL_README.html#local |
My bad, sorry. |
I have a PHP mailer script that works with local host, but when I try to submit a form via server with postfix installed, it doesn't work due to multiple disconnections.
Let me know if you need more information, I'll be glad to share.
My configuration:
The text was updated successfully, but these errors were encountered: