Skip to content
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

Merged
merged 9 commits into from
Aug 6, 2018
Merged

Add postfix container #4

merged 9 commits into from
Aug 6, 2018

Conversation

kirtangajjar
Copy link
Contributor

@kirtangajjar kirtangajjar commented Aug 3, 2018

Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
src/Site_WP_Command.php Outdated Show resolved Hide resolved
src/Site_WP_Docker.php Show resolved Hide resolved
src/Site_WP_Docker.php Outdated Show resolved Hide resolved
templates/docker-compose.mustache Show resolved Hide resolved
@mbtamuli
Copy link
Contributor

mbtamuli commented Aug 3, 2018

This depends on EasyEngine/dockerfiles#28

Copy link
Contributor

@mbtamuli mbtamuli left a 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>
@mrrobot47 mrrobot47 dismissed their stale review August 6, 2018 13:23

This is not blocker for this PR. Tracking it seperately in #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants