LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2013, 03:00 AM   #1
agriz
Member
 
Registered: Nov 2011
Posts: 197

Rep: Reputation: Disabled
Unable to receive emails


This is the first time i am trying mail server to receive emails.

I have added an entry for MX records in zonefile.

I have installed postfix and sendmail.
I don't know whether i need them both.

I tried to send a mail from server using php with mail() function which sends mail. But it sends the mail to spam folder.

I just wanted to receive the mail from gmail to server. But I am not receiving anything in /var/mail/username

Gmail is not giving any failure delivery report too.
How do i track this problem and fix it?

Last few maillog report


Code:
Oct  8 02:05:09 server sendmail[15216]: r986596015216: from=apache, size=85, class=0, nrcpts=1, msgid=<201310080605.r985966015216@domain.com>, relay=apache@localhost
Oct  8 02:05:09 server sendmail[15217]: r986539015217: from=<apache@domain.com>, size=349, class=0, nrcpts=1, msgid=<201310080605.r986966015216@domain.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct  8 02:05:09 server sendmail[15216]: r986966015216: to=someone@gmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30085, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r9865939015217 Message accepted for delivery)
Oct  8 02:05:09 server sendmail[15219]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Oct  8 02:05:10 server sendmail[15219]: r98593901217: to=<someone@gmail.com>, ctladdr=<apache@domain.com> (48/48), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120349, relay=gmail-smtp-in.l.google.com. [74.125.142.27], dsn=2.0.0, stat=Sent (OK 1381212312 lm8si31240icc.94 - gsmtp)
Oct  8 02:05:17 server sendmail[15214]: r9864rZA015214: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Why it is telling apache@domain.com?
I have stopped apache in my server and planning to remove it.
 
Old 10-08-2013, 08:37 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,617

Rep: Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367
I think sendmail is not required to receive mails. apache@domain.com looks like an unconfigured settings.
To read gmail you need a mail client (like thunderbird) and you need to configure your account.
 
Old 10-08-2013, 08:42 AM   #3
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I think sendmail is not required to receive mails. apache@domain.com looks like an unconfigured settings.
To read gmail you need a mail client (like thunderbird) and you need to configure your account.
Should it not be somewhere on the domain?
/var/mail/root has some mail from lfd

Is it not possible to check mail without thunderbird or something like that?
 
Old 10-08-2013, 08:51 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,617

Rep: Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367
domain.com is invalid and usually written as a default dummy entry. you can read your local mails with any mail clients like /usr/bin/mail. Right now I'm a bit confused, which mails do you want to read (local or remote, like gmail)
 
Old 10-08-2013, 09:24 AM   #5
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
I am not able to receive remote mails from gmail, etc.

** From my server, I am able to send mails to gmail.
** From gmail, i think i am not receive mails to my server.
 
Old 10-08-2013, 01:03 PM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,617

Rep: Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367
what kind of client you have? I think you can find explanation here:
http://email.about.com/od/accessingg...nt_via_POP.htm
or here:
http://www.gmailloginblog.com/gmail-...ient-settings/
 
Old 10-08-2013, 01:08 PM   #7
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
I just use ssh to connect with the server. I don't have any cpanel installed.
 
Old 10-09-2013, 01:21 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,617

Rep: Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367Reputation: 4367
you cannot use ssh to connect to gmail servers. you need to use a mail client and configure it as it was described.
 
Old 10-09-2013, 01:28 AM   #9
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
No.

I have linux server with centos.

I have a user accounts.
Example : someone@domain.com, another@domain.com

Now i send a mail to gmail, yahoo, or hotmail like this.

Code:
mail("hello@gmail.com","Test Subject","Test Message");
gmail, yahoo, or hotmail will receive the mail as

Quote:
from: apache@domain.com
subject: test subject
message: test message
Now,
If i mail to someone@domain.com from gmail, yahoo, or hotmail
I don't receive the mail. I don't have any failure notice from gmail so far.

So, I am able to send email to remote servers from my server.
But i am not able to receive remote mails to my server.
 
  


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
Unable to receive emails with Postfix-Squirrel hbtousa Linux - Software 0 08-23-2012 12:14 PM
send out emails fine but can't receive incoming emails said76 Linux - Server 7 07-05-2012 02:37 AM
Postfix - Unable to receive emails deibertine Linux - Software 4 03-05-2011 04:38 AM
Unable to receive external emails samnjugu Linux - Server 11 05-03-2008 05:46 PM
Cannot receive emails from outside world consistgd Linux - Software 3 11-21-2006 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 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