Welcome to Centmin Mod Community
Become a Member

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:
    12:00 PM
    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

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    For forums I don't use postfix relay, I use Xenforo SMTP email options and put Amazon SES SMTP server and username/password :)
     
    • Like Like x 1
  3. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    12:00 PM
    1.7.2
    Percona 5.6
    Thank you , I have solved the problem, using SMTP options email on xenforo :)
     
    • Like Like x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    1:00 PM
    1.11
    10.2
    Not using MailinaBox anymore? :)
     
  5. hungphutho

    hungphutho Member

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

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    7:00 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    @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

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    7:00 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I can not send through contact form with sender info in from header enabled nor disabled.
    Strange...
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  10. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    7:00 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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:
    +161
    Local Time:
    1:00 PM
    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

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    130
    57
    28
    Nov 16, 2015
    Ratings:
    +171
    Local Time:
    1:00 PM
    1.11.x
    MariaDB 10.1.x
    Hmm. XenForo doesn't implement the 'List-Unsubscribe' header. Might see what is required to implement this.

    Perhaps sometime around April :p
     
    • Like Like x 1
  14. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    7:00 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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
     
    • Informative Informative x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah work your magic :D

    I've always had sender info disabled myself :)
     
    • Like Like x 1
  16. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    7:00 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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).
     
    • Informative Informative x 1
  17. deltahf

    deltahf Active Member

    207
    101
    43
    Jun 8, 2014
    Ratings:
    +154
    Local Time:
    1:00 AM
    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

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Agree Agree x 1
    • Informative Informative x 1
  19. GamerJota

    GamerJota New Member

    27
    4
    3
    Mar 1, 2016
    Chile
    Ratings:
    +12
    Local Time:
    2:00 AM
    1.11.2
    10.1.16-1
    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!
     
    • Useful Useful x 1
  20. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:00 PM
    Nginx 1.13.x
    MariaDB 5.5
    TLS + 587 port works fine for me in Xenforo :)