-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add postfix container #4
Conversation
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
This depends on EasyEngine/dockerfiles#28 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a few configuration commands remaining.
site_name=example.com
docker-compose exec postfix postconf -e 'relayhost ='
docker-compose exec postfix postconf -e 'smtpd_recipient_restrictions = permit_mynetworks'
subnet_cidr="$(docker inspect -f '{{ with (index .IPAM.Config 0) }}{{ .Subnet }}{{ end }}' $site_name)"
docker-compose exec postfix postconf -e "mynetworks = $subnet_cidr 127.0.0.0/8"
docker-compose exec postfix postconf -e "myhostname = $site_name"
docker-compose exec postfix postconf -e 'syslog_name = $myhostname'
This works on the shell. Need the $site_name
and $subnet_cidr
substituted so used double quotes. $myhostname
should not be substituted.
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
This is not blocker for this PR. Tracking it seperately in #10
Closes EasyEngine/easyengine#1028
Depends on: