One Postfix and multiple domains, how to do it without Mysql?

The problem is - how to force Postfix to work with multiple domains? And don't use Mysql for this - this is crazy - I don't Mail.ru to have users in the database .... I have only a few users put on 1 domain, only outgoing mail.
How many have not seen the manuals all have each other and copy-paste all the offer through the database, as that without it no?
April 7th 20 at 11:56
3 answers
April 7th 20 at 11:58
April 7th 20 at 12:00
The answer to your main question is contained in VIRTUAL_README.

all offer through the database, as that without it no

Absolutely no database in any way. Should Postfix somewhere to take addresses and passwords of users? But what would it be for the SQL — database, LDAP or flat files — is another question.

PS From your question it is unclear at what stage of setup Postfix you have any issues with adding domains. Whether the question more specific, perhaps, and the answer was not so common.
Yes the server itself is configured and working perfectly for one domain/website
Now puzzled that he would have a second site served (THEM), that would be enough served 1-2 address to extra the domain (only outgoing mail) settings in the file. I don't want to fuss with Skolem and TP which is still 99.9% of you will stall and administer difficult - westley commented on April 7th 20 at 12:03
the server itself is configured and working perfectly for one domain

What is now used as a database?

1-2 address to extra the domain (only outgoing mail)

If you need only outbound mail, then you already now everything works (by default, clients in $mynetworks can send mail from any address). If you don't want to read VIRTUAL_README, describe the task more specifically: who, what, and why? - Linnie_Shanahan commented on April 7th 20 at 12:06
@yesenia_Johnst, I read, and even made, but it works so all emails immediately fall into a spam..

the situation is so short

Basic configuration of the mailer mail.sitename.ru
Appropriately it well serves the eponymous sitename.ru - this is a forum and there are mass mailings, the mailer is working fine.

Bosses added the jazz want to shop (very small, up to 150 positions, highly specialized industry)
OK. Is there a website store magazin-name.ru - everything works
Task - zastiti postfix to accept from the script store mail and send as from legitimate sales@magazin-name.ru on the email Manager (shareware bla-bla@mail.ru)
Everything on this virtual piece of mail is completed, then turn on the Manager, and work as usually in THEM.

The problem now is that, no sane mailer does not accept mail from sales@magazin-name.ru (or rather accepts but once in the infernal furnace of SPAM puts) TK main server then mail.sitename.ru - by the way if you dissect letters from sales@magazin-name.ru the main sevrer it appears that is not very desirable....

Or I was lazy anycast can make it easier - register PDD.YANDEX.RU for the entire domain magazin-name.ru and steer there, and to configure the script directly on yandex.mail - but it's not on Feng Shui.... :)) - westley commented on April 7th 20 at 12:09
The problem now is that, no sane mailer does not accept mail from sales@magazin-name.ru (or rather accepts but once in the infernal furnace of SPAM places)

This is beyond the scope of the Postfix configuration. For a start, "comb" your letters to have successfully passed a basic check SPF/DKIM/DMARC: www.mail-tester.com

TK main server then mail.sitename.ru

It doesn't matter.

if you dissect letters from sales@magazin-name.ru the main sevrer it appears that is not very desirable

Add to main.cf:
smtp_header_checks = pcre:/etc/postfix/smtp_header_checks.pcre

/etc/postfix/smtp_header_checks.pcre:
/^Received:.*$/ IGNORE - Linnie_Shanahan commented on April 7th 20 at 12:12
@yesenia_Johnst, thanks for the reply.
Comb which server offer? Main or virtual?
If the primary then it is still possible to solve, and as a virtual?... - westley commented on April 7th 20 at 12:15
passed the test on the site - 8/10 - not bad, the emphasis is on the lack of SPF, etc - westley commented on April 7th 20 at 12:18
the emphasis is on the lack of SPF, etc

Here it is and enjoy. - Linnie_Shanahan commented on April 7th 20 at 12:21
@yesenia_Johnst, these settings will work for basic or all? - westley commented on April 7th 20 at 12:24
SPF and DMARC is a corresponding record in the domain zone, from the mail server to configure anything not necessary (but DMARC includes DKIM, see below). Prescribed for a particular domain and, accordingly, are valid only for this domain.
DKIM — changes are made in the domain zone (and is valid for a specific domain) and appropriately configured mail server. And here's how it set up, so be it. - Linnie_Shanahan commented on April 7th 20 at 12:27
@yesenia_Johnst, got it, thanks! - westley commented on April 7th 20 at 12:30
April 7th 20 at 12:02
No ear did not understand - you need to accept mail for multiple domains?
No, the situation is so short

Basic configuration of the mailer mail.sitename.ru
Appropriately it well serves the eponymous sitename.ru - this is a forum and there are mass mailings, the mailer is working fine.

Bosses added the jazz want to shop (very small, up to 150 positions, highly specialized industry)
OK. Is there a website store magazin-name.ru - everything works
Task - zastiti postfix to accept from the script store mail and send as from legitimate sales@magazin-name.ru on the email Manager (shareware bla-bla@mail.ru)
Everything on this virtual piece of mail is completed, then turn on the Manager, and work as usually in THEM.

The problem now is that, no sane mailer does not accept mail from sales@magazin-name.ru (or rather accepts but once in the infernal furnace of SPAM puts) TK main server then mail.sitename.ru - by the way if you dissect letters from sales@magazin-name.ru the main sevrer it appears that is not very desirable....

Or I was lazy anycast can make it easier - register PDD.YANDEX.RU for the entire domain magazin-name.ru and steer there, and to configure the script directly on yandex.mail - but it's not on Feng Shui.... :)) - westley commented on April 7th 20 at 12:05

Find more questions by tags Mail serverPostfixSystem administration