forked from sendgrid/docker-postfix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rev sendgrid#2, now receives mail with this test plan:
- mail_send.send_to_self_basic([email protected]) - test_event_inbox.validate_processed_event(timeout_seconds=240,auto_validate=True) - test_event_inbox.validate_delivered_event(timeout_seconds=240,auto_validate=True)
- Loading branch information
1 parent
e24801c
commit 3200c27
Showing
9 changed files
with
141 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM docker.sendgrid.net/sendgrid/dev_pl | ||
FROM docker.sendgrid.net/sendgrid/dev | ||
|
||
RUN yum install postfix | ||
RUN yum install -y postfix | ||
|
||
WORKDIR /opt/sendgrid/postfix | ||
|
||
ADD master.cf /etc/postfix/master.cf | ||
ADD aliases.erb /etc/aliases | ||
ADD main.cf.erb /etc/postfix/main.cf | ||
ADD sg_mail.erb /etc/logrotate.d/sg_mail | ||
ADD mailname.erb /etc/mailname | ||
ADD aliases /etc/aliases | ||
ADD main.cf /etc/postfix/main.cf | ||
ADD sg_mail /etc/logrotate.d/sg_mail | ||
ADD mailname /etc/mailname | ||
|
||
RUN service postfix restart | ||
#RUN service postfix start |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mxpostfix.docker |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
queue_directory = /var/spool/postfix | ||
|
||
command_directory = /usr/sbin | ||
|
||
daemon_directory = /usr/libexec/postfix | ||
|
||
data_directory = /var/lib/postfix | ||
|
||
|
||
mail_owner = postfix | ||
|
||
myhostname = mxpostfix.docker | ||
|
||
myorigin = /etc/mailname | ||
inet_interfaces = $myhostname | ||
|
||
|
||
inet_protocols = all | ||
|
||
mydestination = bounced.docker, localhost | ||
|
||
|
||
unknown_local_recipient_reject_code = 550 | ||
|
||
|
||
|
||
alias_maps = hash:/etc/aliases | ||
|
||
alias_database = hash:/etc/aliases | ||
|
||
#recipient_delimiter = + | ||
|
||
|
||
|
||
debugger_command = | ||
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin | ||
ddd $daemon_directory/$process_name $process_id & sleep 5 | ||
|
||
sendmail_path = /usr/sbin/sendmail.postfix | ||
|
||
|
||
newaliases_path = /usr/bin/newaliases.postfix | ||
|
||
|
||
mailq_path = /usr/bin/mailq.postfix | ||
|
||
|
||
setgid_group = postdrop | ||
|
||
|
||
html_directory = no | ||
|
||
|
||
manpage_directory = /usr/share/man | ||
|
||
|
||
sample_directory = /usr/share/doc/postfix-2.6.6/samples | ||
|
||
|
||
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
docker run \ | ||
--rm \ | ||
-it \ | ||
--name mxpostfix \ | ||
--hostname mxpostfix \ | ||
--dns 172.17.42.1 \ | ||
--dns-search docker \ | ||
--volumes-from mpide_spool_1 \ | ||
mxpostfix \ | ||
bash |