Skip to content

Instantly share code, notes, and snippets.

@Schrank
Last active October 21, 2019 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schrank/9b60f5262b6a99292fa171ea528ef191 to your computer and use it in GitHub Desktop.
Save Schrank/9b60f5262b6a99292fa171ea528ef191 to your computer and use it in GitHub Desktop.
Smyfony4 Swift SMTP configuration for Uberspace
MAILER_PASSWORD=12345
# e.g. in config/packages/swiftmailer.yaml
swiftmailer:
delivery_addresses: ['mymail@example.com']
delivery_whitelist:
# all email addresses matching these regexes will be delivered
# like normal, as well as being sent to dev@example.com
- '/@example\.de$/'
transport: smtp
username: USERNAME
password: '%env(resolve:MAILER_PASSWORD)%'
host: SERVER.uberspace.de
port: 587
timeout: 30
local_domain: 'uber.space'
encryption: tls
auth_mode: login
sender_address: 'USERNAME@uber.space'
antiflood:
threshold: 99
sleep: 0
logging: true
spool:
type: memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment