Postfix auth and relay
I am trying to get postfix set up on my Debian system such that an authenticated virtual user can send email to any public address on the internet. All the solutions I have found while googling suggest inflexible solutions such as adding 'gmail.com' to mydestination. Could you please point me in the right direction for configuring postfix to auth via the plain or login mechanism (these show with an EHLO currently) and then allow relay of mails to external domains?
At present, such messages are met with a 554:
Connect and auth to example.com
Send mail from email@example.com to firstname.lastname@example.org
Connect to example.com
Attempt to send mail from email@example.com to firstname.lastname@example.org
Here is my postconf -n:
Have you also configured the client auth in the dovecot conf?
Here is a how to document that I think is pretty good. I believe it is at least very close to what you want, virtual users, SASL authentication, and Dovecot. Link Here.
Setting up a mail server is not a trivial task and it is likely going to take you several weeks worth of effort to get it going. Do not give up. Instead you need to focus on trying to work through the error messages, each of which will tell you an important clue as to what is not configured properly and try to understand what the configuration parameters do (this will take time).
I would suggest enabling the advanced debugging features in both postfix and dovecot. One suggestion to consider is to use postfixadmin to help configure the database for your virtual users. Also remember that there is a SQL Schema that you need to import into your database to configure the tables properly.
|All times are GMT -5. The time now is 11:09 PM.|