Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-09-2014, 04:56 AM   #1
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 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
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 171

Rep: Reputation: 20

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: ; it may give you some good tips on what to setup (e.g. your reverse DNS etc).

Good luck,
Old 01-09-2014, 09:14 AM   #3
Registered: Jan 2014
Location: Farnborough, Hampshire - UK
Distribution: 2 * CentOS 8.2 Self-Hosted Domain Servers (Mail & Web Server / FTP & VPN Server)
Posts: 107

Rep: Reputation: Disabled

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 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 file:

dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/, you will need to regenerate the
dnl # /etc/mail/ file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # /etc/mail/make
dnl #
VERSIONID(`setup for 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', `')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.....




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 > Forums > Linux Forums > Linux - Newbie

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

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