LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-09-2014, 04:56 AM   #1
piyushsingh
LQ Newbie
 
Registered: Sep 2012
Posts: 21

Rep: Reputation: Disabled
How to send mail by postfix to gmail in red hat linux 6.3


Hi to all

i have configured postfix mail server in red hat linux 6.3 with static ip and domain name is working fine.when i am trying to send e-mail to yahoo and it appears in spam.when i am sending to my gmail account then mail has not been send.it works with yahoo although in spam but try to send in gmail account it doesn't.i don't know what is reason behind this.


kindly help me,your help would be appreciated.
thanks in advance
 
Old 01-09-2014, 06:01 AM   #2
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 121

Rep: Reputation: 20
Hi,

GMail is very picky about the security of the sending server, and from what I can tell, your server is not setup very well (otherwise yahoo would not put your mails in the spam folder).

If Google does not accept your mail, it should return a mail with the reason why it was not accepted. Or it never reached google in the first place. Can you please post the relevant part of /var/log/maillog ?

Also, run your mail domain through this site: http://www.emailsecuritygrader.com/ ; it may give you some good tips on what to setup (e.g. your reverse DNS etc).

Good luck,
Louis
 
Old 01-09-2014, 09:14 AM   #3
Rawcous
Member
 
Registered: Jan 2014
Location: Farnborough, Hampshire - UK
Distribution: Previously 2 * Fedora 18 Servers -> 2 * CentOS 6.7 + random distro testing
Posts: 96

Rep: Reputation: Disabled
Talking

Afternoon everybody....

piyushsingh Using Sendmail as my SMTP server I receive similar results to you if I do not include my ISPs smtp server name in my sendmail.mc config file even though my server is naturally connected via their broadband line.... Give it a try

See below for the header info. in my sendmail.mc file:

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # /etc/mail/make
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Do not advertize sendmail version.
dnl #
dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST', `smtp.ispserver.com')dnl


lpwevers I ran the mail server test per your link - very intuitive - I achieved a result of 90% - Very Strong Security with a percentile score of 94% meaning that my sever is in the top 6% of all severs that they have ran the test against - Heck Yeah!!! The areas where I didn't receive a point or was deducted are fortunately not significant for me. Am I now tempting fate by publishing this result? - Oops, I hope not.....

Regards,

Rawcous!!!!
 
  


Reply

Tags
mailserver, postfix


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
postfix configuration to send and receive mail from gmail using free domain and ip mohdrafivv1 Linux - Newbie 1 09-23-2013 07:19 AM
How to configure send Mail using Red Hat 7.3 prosperm Linux - Server 2 03-19-2010 11:09 AM
Ubuntu server with postfix. My mail goes to Spam in Gmail and Yahoo Mail. Ideeas? bob808 Linux - Server 4 02-07-2009 05:11 PM
Sendmail in Red Hat 4 - Can send e-mail but CAN'T RECEIVE bskrakes Linux - Networking 2 04-01-2008 09:05 PM


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