Postfix Configuration File Plesk Support

 Posted admin

The following configuration items are not in the postfix configuration and need to be added to the /etc/postfix/main.cf configuration file. They configure the SMTP authentication settings for the smtpd daemon. # # SMTP-AUTH configuration # # The name of the Postfix SMTP server's local SASL authentication realm. Postfixadmin is a web-based GUI for setting up mail users for a Postfix+MySQL setup. It will let you create users and aliases per domain. This HOWTO goes over install Postfix Admin, Postfix with a MySQL backend and SMTP auth enabled, and Dovecot (for POP3/POP3/IMAP/IMAPS) with a MySQL backend. While this HOWTO is was tested on Debian Etch, the Postfix/MySQL setup is generic and should work. The following configuration items are not in the postfix configuration and need to be added to the /etc/postfix/main.cf configuration file. They configure the SMTP authentication settings for the smtpd daemon. # # SMTP-AUTH configuration # # The name of the Postfix SMTP server's local SASL authentication realm.

  1. Postfix Config File
Active4 years, 8 months ago
vote

I'm using the PHP mail() function, using PostFix, on CentOS6, Plesk 10.4, and my email is not getting delivered to a particular address. My personal GMail and Yahoo email addresses receive email from my server fine and do not produce errors. After a wonderful suggestion on here, I checked my mail logs, and this is the error I see :

Postfix Config File

my.valid.email@myserver.com is the name I've declared in php.ini for

sendmail_from = 'my.valid.email@myserver.com'sendmail_path = '/usr/sbin/sendmail -t -f my.valid.email@myserver.com'

and the recipient is supposed to be name@company.com.

Is this an error on my side or the recipients? Can I address this on my server?

Many thanks SF.

RCNeil
RCNeilRCNeil
3202 gold badges6 silver badges17 bronze badges

closed as off-topic by HopelessN00bJan 12 '15 at 11:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

File
  • 'Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center.' – HopelessN00b
SupportIf this question can be reworded to fit the rules in the help center, please edit the question.

locked by HopelessN00bJan 12 '15 at 11:17

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. See the help center for guidance on writing a good question.

Executable file

Read more about locked posts here.

3 Answers

votes

I've discovered this is an error due to PLESK (and the user), and because there isn't much documentation on it, I think this post is worth keeping.

Because I had the vhost domain of the email address I was sending to established in PLESK, it tried to revert to a local Postfix search when it recognized the tail end of the email address as something it thought was hosted on the server itself.

Remember that. Telechargement motorola phone tools gratuitous meaning. This is where words like 'Incognito Mode' or 'Private Browsing' come into the picture. What that means is that the things you type and the websites you visit don't get saved on your phone as any sort of internet history. Now let's talk about making sure your phone doesn't save things so others can go snooping around for them.

There is documentation on how to fix this in the PostFix configuration file here.

I appreciate everyone's efforts.

RCNeilRCNeil
3202 gold badges6 silver badges17 bronze badges
votes

Apr 10 10:26:29 ######### postfix-local[8331]: postfix-local: from=my.valid.email@myserver.com, to=name@company.com, dirname=/var/qmail/mailnames Apr 10 10:26:29 ######### postfix-local[8331]: cannot chdir to mailname dir name: No such file or directory Apr 10 10:26:29 ######### postfix-local[8331]: Unknown user: name@company.com

Contrary to what you may think, these are not postfix logs.

Postfix prefixes all log messages with postfix/<servicename> - never postfix-<servicename>

adaptradaptr
votes

I had this issue too. Any email being sent to my company domain was being sent locally. This is (I believe) because in Plesk (yes it's a Plesk issue).

So basically it's going oh soandso@company.com is the registered user lets send any @company.com emails locally or something like that.

Anyway, I have had to fix this twice now and I did it by editing the /etc/postfix/main.cf file and commenting out the lines that started with 'virtual'.

See http://www.rcneil.com/postfix-local-loop-in-plesk/ for instructions on how to fix the issue

user1292736user1292736

Not the answer you're looking for? Browse other questions tagged phpemailpostfixphp.ini or ask your own question.