LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2013, 06:56 PM   #1
srsubbulakshmi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Rep: Reputation: Disabled
Smile 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
 
Old 03-31-2013, 09:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992
Quote:
Originally Posted by srsubbulakshmi View Post
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
Spell out your words. And if you want to know how to configure sendmail for use with your mail server, then your first step needs to be contacting your mail server tech-support, and ask them for the information. After that, you need to set up sendmail to use that information, then write your PHP program to use it.

Your question is vague...we are happy to help with specific problems, but there are too many variables to address in a vague question.
 
Old 03-31-2013, 11:10 PM   #3
srsubbulakshmi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Smile SendMail Configuration for Net4india.com

Quote:
Originally Posted by TB0ne View Post
Spell out your words. And if you want to know how to configure sendmail for use with your mail server, then your first step needs to be contacting your mail server tech-support, and ask them for the information. After that, you need to set up sendmail to use that information, then write your PHP program to use it.

Your question is vague...we are happy to help with specific problems, but there are too many variables to address in a vague question.

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

Last edited by srsubbulakshmi; 04-04-2013 at 03:03 PM.
 
Old 04-01-2013, 10:42 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992
Quote:
Originally Posted by srsubbulakshmi View Post
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.
First, you really shouldn't put your email address on a public forum...all you've done is make it easier for spammers to get your address.

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.

Last edited by colucix; 04-04-2013 at 05:44 PM. Reason: Masked personal info in quoted text (as per request).
 
Old 04-02-2013, 03:19 AM   #5
srsubbulakshmi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-02-2013, 09:28 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992
Quote:
Originally Posted by srsubbulakshmi View Post
I get the following error in mail.log file
Apr 2 03:54:01 panzeea sm-mta[3451]: r327rwdH003451: r327rwdI003451: DSN: Data format error
Apr 2 03:54:01 panzeea sendmail[3359]: r327dJ09003359: r327dJ0A003359: DSN: User unknown

Pls help me
Again, you need to SPELL OUT YOUR WORDS. It's "please" not "pls".

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
 
Old 04-04-2013, 02:57 PM   #7
srsubbulakshmi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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" "Password" "M:PLAIN"
AuthInfo: "U:usertest@domainname.com" "I:usertest@domainname.com" "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" "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

Last edited by srsubbulakshmi; 04-04-2013 at 03:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail configuration help daisychick Linux - Software 3 08-03-2012 04:15 PM
Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found eliassal Linux - Server 15 11-04-2010 01:09 AM
sendmail configuration srianirudh Linux - Server 2 06-22-2009 01:17 PM
Sendmail configuration uncre8tv Linux - Networking 1 11-16-2004 10:57 PM
Sendmail Configuration arshad Red Hat 3 12-14-2003 12:11 AM


All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration