Join the community today
Register Now

Email Amazon SES for xenforo ?

Discussion in 'Domains, DNS, Email & SSL Certificates' started by hungphutho, Aug 14, 2015.

Tags:
  1. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    5:27 AM
    1.7.2
    Percona 5.6
    Currently I'm using Amazon SES, but I can not configure xenforo .
    I have to follow the instructions here "Amazon SES with Postfix" to use SMTP relay, but I always get an error when sending email through xenforo
    Check maillog
    Code:
    relay=email-smtp.us-east-1.amazonaws.com[107.20.142.169]:25, delay=2.1, delays=0/0/1.8/0.23, dsn=5.0.0, status=bounced (host email-smtp.us-east-1.amazonaws.com[107.20.142.169] said: 501 Invalid MAIL FROM address provided (in reply to MAIL FROM command))
    Although I check email on the command line, there was no error occurred
    Code:
    sendmail -f from@example.com to@example.com
    
    From: from@example.com
    
    Subject: Test
    
    This email was sent through Amazon SES!
    
    .

    @eva2000 I noticed eva2000 also use SES With forums, you can guide how to configure for xenforo ?


    Thank !
     
    Last edited: Aug 14, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For forums I don't use postfix relay, I use Xenforo SMTP email options and put Amazon SES SMTP server and username/password :)
     
  3. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    5:27 AM
    1.7.2
    Percona 5.6
    Thank you , I have solved the problem, using SMTP options email on xenforo :)
     
  4. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    6:27 AM
    Mainline
    10.2
    Not using MailinaBox anymore? :)
     
  5. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    5:27 AM
    1.7.2
    Percona 5.6
    No !
    I use both :)
     
  6. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    12:27 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    @eva2000 how you solved problem with Amazon ses and contact us form?
    Today I enable Amazon SES and I managed Xenforo to deliver mails through Amazon SMPT, but there is problem with contact us form (there are few threads on xenforo forum too), because mail will be generated in way that sender is user mail, and amazon ses reject that cause that mail is not verified.

    My temporary solution is created form for contact wich when submited send complete form on my e-mail
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no probs here though i don't have sender info in from header enabled

    upload_2016-2-28_9-33-58.png
     
  8. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    12:27 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    I can not send through contact form with sender info in from header enabled nor disabled.
    Strange...
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    k double checked and yes i get from being my from email (@centminmod.com domain) but reply-to being the person using the contact us forum but Amazon SES sends emails fine for me as my from email (@centminmod.com domain) is verified and validated by Amazon SES via DKIM and SPF records
     
  10. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    12:27 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Yep, those emails from contact form just arrived to my account, with 2 hours of delay. :confused:
    All other mails from and to forum arrive in minute.
     
  11. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    6:27 AM
    latest
    latest
    I don't see the appeal of SES anymore after learning that they're having problems with deliverability with hotmail and yahoo.
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    If you look hard enough, pretty sure all transactional email providers will have problems with hotmail/yahoo just due to sheer number of servers and the way hotmail/yahoo use various spam lists i think. Haven't looked into whether sparkpost, sendgrid, mailgun etc have such issues though.

    Quick google-fu for sendgrid - the documentation is there as IP being on spam lists is a probability :)
     
  13. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    6:27 AM
    1.15.x
    MariaDB 10.3.x
    Hmm. XenForo doesn't implement the 'List-Unsubscribe' header. Might see what is required to implement this.

    Perhaps sometime around April :p
     
  14. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    12:27 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    All is OK now. Mails from Contact arriving in 10 seconds.
    My domain is verified and validated via DKIM and SPF records too. Btw, SPF is by default ona Amazon.
    Also, key was to disable sender info in from header option. But when use default Xenforo mail + Gmail, that option have to be enabled
     
  15. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah work your magic :D

    I've always had sender info disabled myself :)
     
  16. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    12:27 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Only when you have default xenforo email settings and gmail for (redirected to) forum official mail, than you have to enable that option, because with disabled you come in situation that you reply to your self in gmail (send and recive (from and to) are same mail).
     
  17. deltahf

    deltahf Premium Member Premium Member

    582
    264
    63
    Jun 8, 2014
    Ratings:
    +483
    Local Time:
    6:27 PM
    I'm curious as to why you do this, George? Looks like it would be better to offload the SMTP workload to Postfix instead of tying up PHP with that.

    I just completed transitioning my Postfix relay from Mandrill to SES today and all seems well so far.
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    A few reasons
    1. Don't need for server emails i.e. to root user going through Amazon SES
    2. Isolating Amazon SES emails just for forum specific notifications/emails
    3. Easier to scale and/or move forums or web apps to another server or web host without needing to reconfigure Postfix etc with short notice etc
     
  19. GamerJota

    GamerJota Member

    49
    7
    8
    Mar 1, 2016
    Ratings:
    +18
    Local Time:
    7:27 PM
    Going to leave this in here if anyone else ends up with the same problem, try using "SSL" instead of "TLS" when using Amazon SES, works for me!
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:27 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    TLS + 587 port works fine for me in Xenforo :)