SendMail Configuration for Net4india.com
Hi,
I want to send mail using php in Ubuntu server. My Mail Serer is mail.net4india.com, my domain name is panzeea.com. Let me know the mail for sendmail configuration in Ubuntu. if u help me really its useful Thanks |
Quote:
Your question is vague...we are happy to help with specific problems, but there are too many variables to address in a vague question. |
SendMail Configuration for Net4india.com
Quote:
Thanks Sorry for the mistake and vague question. My mail server name is hostname, my mail id user@domainname.com which is used to send mail means userid and password is *****. Please help me how to configure in sendmail setup. Thanks |
Quote:
If you want to set up sendmail on Ubuntu, then you still need to tell us what VERSION of Ubuntu, then try looking it up on Google. There are MANY, easily-found how-to guides. Putting in "how to set up sendmail relay on ubuntu" pulls up lots...like this: http://ubuntuforums.org/showthread.php?t=1703247 http://www.ozzu.com/unix-linux-forum...il-t29690.html http://ubuntuforums.org/showthread.php?t=1343651 Follow one of the guides, and post back if you have SPECIFIC problems. |
I get the following error in mail.log file
Apr 2 03:54:01 panzeea sm-mta[3451]: r327rwdH003451: to=<srstest@yahoo.co.in>, ctladdr=<user@net4india.com> (1000/1000), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=30265, relay=mx-apac.mail.gm0.yahoodns.net. [106.10.166.52], dsn=5.6.0, stat=Data format error Apr 2 03:54:01 panzeea sm-mta[3451]: r327rwdH003451: r327rwdI003451: DSN: Data format error Apr 2 03:54:01 panzeea sm-mta[3451]: r327rwdI003451: to=<user@net4india.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Apr 2 03:54:01 panzeea sendmail[3359]: r327dJ09003359: to=srstest@yahoo.co.in, ctladdr=user (1000/1000), delay=00:14:42, xdelay=00:00:03, mailer=relay, pri=60000, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r327rwdH003451 Message accepted for delivery) Apr 2 03:54:01 panzeea sendmail[3359]: r327dJ09003359: r327dJ0A003359: DSN: User unknown Apr 2 03:54:01 panzeea sm-mta[3451]: r327rwdK003451: from=<>, size=1866, class=0, nrcpts=1, msgid=<201304020754.r327dJ0A003359@net4india.com>, proto=ESMTP, daemon=MTA-v4, relay=net4india.com [127.0.0.1] Apr 2 03:54:02 panzeea sm-mta[3451]: r327rwdK003451: to=<user@net4india.com>, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=31866, dsn=2.0.0, stat=Sent Apr 2 03:54:02 panzeea sendmail[3359]: r327dJ0A003359: to=user, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31024, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r327rwdK003451 Message accepted for delivery) Pls help me |
Quote:
What guide, if any, did you follow to set up sendmail? You also STILL don't say what version of Ubuntu you're using, and note that the errors you posted (which you can find with a Google/LQ search), indicate a DNS error. Did you configure your DNS correctly? http://www.linuxquestions.org/questi...451/page2.html |
Hi,
Ubuntu version - 12.04 I had configured sendmail by using the below link http://www.linuxquestions.org/questi...451/page2.html /etc/mail/sendmail.mc FEATURE(`no_default_msa')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl dnl# DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1') DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl dnl #DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1') dnl DAEMON_OPTIONS(`Port=submission, Name=MSP, M=Ea,')dnl dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl dnl # SSL Settings define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs') define(`confCACERT_PATH', `CERT_DIR') define(`confCACERT', `CERT_DIR/CAcert.pem') define(`confSERVER_CERT', `CERT_DIR/mycert.pem') define(`confSERVER_KEY', `CERT_DIR/mykey.pem') define(`confCLIENT_CERT', `CERT_DIR/mycert.pem') define(`confCLIENT_KEY', `CERT_DIR/mykey.pem') define(`SMART_HOST',`[hostname]')dnl define(`MAIL_HUB', `relay:domainname.com.') define(`ALIAS_FILE',`/etc/mail/aliases') dnl FEATURE(`relay_based_on_MX')dnl define(`confDOMAIN_NAME',`domainname.com')dnl MASQUERADE_AS('domainname.com')dnl FEATURE(masquerade_envelope)dnl FEATURE(masquerade_entire_domain)dnl MASQUERADE_DOMAIN(domainname.com)dnl FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl GENERICS_DOMAIN('domainname.com')dnl define(`confAUTH_OPTIONS', `A,p,y')dnl TRUST_AUTH_MECH('EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') dnl #TRUST_AUTH_MECH('EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl MAILER(`local')dnl MAILER(`smtp')dnl /etc/mail/authinfo AuthInfo:hostname "U:usertest@domainname.com" "I:usertest@domainname.com" "P:password" "M:PLAIN" AuthInfo: "U:usertest@domainname.com" "I:usertest@domainname.com" "P:password" "M:PLAIN" /etc/mail/access I had added the below line localhost.localdomain RELAY localhost RELAY Connect:127.0.0.1 RELAY Connect:hostipaddress RELAY AuthInfo:hostname "U:usertest@domainname.com" "I:usertest@domainname.com" "P:password" "M:PLAIN" /etc/mail/mailertable domainname.com rely:[host ip address] .domainname.com rely:[host ip address] /etc/hosts 127.0.0.1 localhost.localdomain localhost host ip address hostname /var/log/mail.log Apr 4 11:57:42 panzeea sm-mta[4999]: starting daemon (8.14.4): SMTP+queueing@00:10:00 Apr 4 11:58:14 panzeea sendmail[5013]: r34Fvqit005013: from=user, size=60, class=0, nrcpts=1, msgid=<201304041557.r34Fvqit005013@domainname.com>, relay=root@localhost Apr 4 11:58:22 panzeea sendmail[5013]: r34Fvqit005013: to=srtest@gmail.com, ctladdr=user (1000/1000), delay=00:00:30, xdelay=00:00:08, mailer=relay, pri=30060, relay=hostname. [host ip address], dsn=5.6.0, stat=Data format error Apr 4 11:58:22 panzeea sendmail[5013]: r34Fvqit005013: r34Fvqiu005013: DSN: Data format error Apr 4 11:58:30 panzeea sendmail[5013]: r34Fvqiu005013: to=user, delay=00:00:08, xdelay=00:00:07, mailer=relay, pri=30000, relay=hostname., dsn=2.0.0, stat=Sent (OK id=1UNmYr-00042n-ME) please help me |
All times are GMT -5. The time now is 09:07 AM. |