Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
postfix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luiz.nunes
postfix
Commits
372beca9
Commit
372beca9
authored
Jun 02, 2015
by
Alex Eftimie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme.
parent
5909f323
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
README.md
README.md
+13
-4
No files found.
README.md
View file @
372beca9
...
@@ -12,12 +12,21 @@ Usage:
...
@@ -12,12 +12,21 @@ Usage:
## Example usage
## Example usage
Run:
In the
`example`
folder, there is an example centos container than can be used to test connectivity.
cd example
cd example
docker build -t example .
docker build -t example .
docker run --rm -it --link=postfix:postfixcontainer example
docker run --rm -it --link=postfix:postfixcontainer example
mail test@example.com
# from commandline:
$ mail test@example.com
# mail should be sent by the postfix container
# from an application, python:
\ No newline at end of file
$ python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[
GCC 4.4.7 20120313 (Red Hat 4.4.7-4)
]
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import smtplib
>>> s = smtplib.SMTP('postfixcontainer')
>>> s.sendmail('test@example.eionet.europa.eu', ['user@example.com'], 'test')
{}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment