Sunday, 9 October 2011

Ubuntu - Sendmail


Install Sendmail:
  • sudo apt-get install sendmail

Some tricks:
  1. "Oct 9 02:45:51 www sendmail[55971]: k992joX1055971: k992joX2055971: DSN: Data format error" from /var/log/mail.log
    • The problem is fixed by editing php.ini file and adding from email id to sendmail.
    • sendmail_path = /usr/sbin/sendmail -t -i -f admin@hostedomain.com 
  2. http://www.freebsd.org/doc/handbook/sendmail.html
    • sudo vim /etc/mail/local-host-names
      • your-domain.com
    • sudo hostname your-domain.com
    • sender is: localhost.localdomain
      • sudo vim /etc/hosts
        • 127.0.0.1    your-domain.com
        • 123.123.123.123 your-domain.com




I don't know how to fix this error from /var/log/mail.log:
Oct  9 20:58:00 blogspot sendmail[23889]: p99Gw0aq023889: Authentication-Warning: blogspot.com: www-data set sender to admin@blogspot.com using -f
Oct  9 20:58:00 blogspot sendmail[23889]: p99Gw0aq023889: from=admin@blogspot.com, size=1879, class=0, nrcpts=1, msgid=<20111009165759.8fa4a20c1572@blogspot.com>, relay=www-data@localhost
Oct  9 20:58:00 blogspot sm-mta[23904]: p99Gw03F023904: from=<admin@blogspot.com>, size=2098, class=0, nrcpts=1, msgid=<20111009165759.8fa4a20c1572@blogspot.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Oct  9 20:58:00 blogspot sendmail[23889]: p99Gw0aq023889: to=teavivian@gmail.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31879, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p99Gw03F023904 Message accepted for delivery)
Oct  9 20:58:00 blogspot sm-mta[23914]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Oct  9 20:58:01 blogspot sm-mta[23914]: p99Gw03F023904: to=<teavivian@gmail.com>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=122098, relay=gmail-smtp-in.l.google.com. [209.85.225.26], dsn=2.0.0, stat=Sent (OK 1318179481 x1si7372602
icv.92)

No comments:

Post a Comment