csvalpha / amber-api

https://csvalpha.nl
MIT License
4 stars 4 forks source link

Cannot create mail alias with SMTP #374

Open wilco375 opened 1 year ago

wilco375 commented 1 year ago

How to reproduce

  1. Create a new mail alias
  2. Check the enable SMTP checkbox
  3. Click save

Expected behaviour

The mail alias is saved and an SMTP account is created

Current behaviour

ActiveJob::SerializationError
Unable to serialize MailAlias without an id. (Maybe you forgot to call save?)
at app/models/mail_alias.rb in set_smtp:90

Workaround

It does work if you first create the mail alias without SMTP enabled, then edit it and enable SMTP.