LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-28-2014, 10:32 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Rep: Reputation: Disabled
Sending email with postfix - Network is unreachable


Hi,

I've been trying for a while to set up postfix so I could send emails. I keep on getting "Network is unreachable". I am sure it is my network setup, but I don't know where to stop. I've disabled iptables, and I have ports 25 and 110 open on my home router which is between my Internet connection and my server.

Please provide any recommendations.

Thank you

Code:
[root@michaels conf]# mail -s .Hello world. michael@gmail.com
Hello Michael
.
EOT

[root@michaels conf]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
6B6E7F200C9      494 Thu Mar 27 23:19:12  root@newlaptop.michaels.lan
(delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c01::1b]:25: Network is unreachable)
                                         michael@gmail.com

-- 0 Kbytes in 1 Request.

[root@michaels conf]# telnet newlaptop.michaels.lan 25
Trying 192.168.0.215...
telnet: connect to address 192.168.0.215: Connection refused
[root@michaels conf]#

[root@michaels conf]# sendmail -v -q
postqueue: dict_eval: const  mail
postqueue: dict_eval: const  all
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: name_mask: all
postqueue: dict_eval: const  newlaptop.michaels.lan
postqueue: dict_eval: const  mySite.com
postqueue: dict_eval: const  Postfix
postqueue: dict_eval: expand ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} -> postfix
postqueue: dict_eval: const  postfix
postqueue: dict_eval: const  postdrop
postqueue: dict_eval: expand $myhostname, localhost.$mydomain, localhost -> newlaptop.michaels.lan, localhost.mySite.com, localhost
postqueue: dict_eval: expand $myhostname -> newlaptop.michaels.lan
postqueue: dict_eval: const
postqueue: dict_eval: const  /usr/libexec/postfix
postqueue: dict_eval: const  /var/lib/postfix
postqueue: dict_eval: const  /usr/sbin
postqueue: dict_eval: const  /var/spool/postfix
postqueue: dict_eval: const  pid
postqueue: dict_eval: const  localhost
postqueue: dict_eval: const
postqueue: dict_eval: const  double-bounce
postqueue: dict_eval: const  nobody
postqueue: dict_eval: const  hash:/etc/aliases
postqueue: dict_eval: const  20100319
postqueue: dict_eval: const  2.6.6
postqueue: dict_eval: const  hash
postqueue: dict_eval: const  deferred, defer
postqueue: dict_eval: const
postqueue: dict_eval: expand $mydestination -> newlaptop.michaels.lan, localhost.mySite.com, localhost
postqueue: dict_eval: expand $relay_domains -> newlaptop.michaels.lan, localhost.mySite.com, localhost
postqueue: dict_eval: const  TZ MAIL_CONFIG LANG
postqueue: dict_eval: const  MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C
postqueue: dict_eval: const  subnet
postqueue: dict_eval: const
postqueue: dict_eval: const  +=
postqueue: dict_eval: const  -=+
postqueue: dict_eval: const  debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
postqueue: dict_eval: const
postqueue: dict_eval: const  bounce
postqueue: dict_eval: const  cleanup
postqueue: dict_eval: const  defer
postqueue: dict_eval: const  pickup
postqueue: dict_eval: const  qmgr
postqueue: dict_eval: const  rewrite
postqueue: dict_eval: const  showq
postqueue: dict_eval: const  error
postqueue: dict_eval: const  flush
postqueue: dict_eval: const  verify
postqueue: dict_eval: const  trace
postqueue: dict_eval: const  proxymap
postqueue: dict_eval: const  proxywrite
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const  2
postqueue: dict_eval: const  100s
postqueue: dict_eval: const  100s
postqueue: dict_eval: const  100s
postqueue: dict_eval: const  100s
postqueue: dict_eval: const  3600s
postqueue: dict_eval: const  3600s
postqueue: dict_eval: const  5s
postqueue: dict_eval: const  5s
postqueue: dict_eval: const  1000s
postqueue: dict_eval: const  1000s
postqueue: dict_eval: const  10s
postqueue: dict_eval: const  10s
postqueue: dict_eval: const  1s
postqueue: dict_eval: const  1s
postqueue: dict_eval: const  1s
postqueue: dict_eval: const  1s
postqueue: dict_eval: const  500s
postqueue: dict_eval: const  500s
postqueue: dict_eval: const  18000s
postqueue: dict_eval: const  18000s
postqueue: dict_eval: const  1s
postqueue: dict_eval: const  1s
postqueue: name_mask: subnet
postqueue: inet_addr_local: configured 2 IPv4 addresses
postqueue: inet_addr_local: configured 2 IPv6 addresses
postqueue: been_here: 127.0.0.0/8: 0
postqueue: been_here: [::1]/128: 0
postqueue: mynetworks: 127.0.0.0/8 [::1]/128
postqueue: dict_eval: const  127.0.0.0/8 [::1]/128
postqueue: dict_eval: const  static:anyone
postqueue: dict_eval: const  static:anyone
 
Old 03-28-2014, 10:35 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
Using IP6 (alt2.gmail-smtp-in.l.google.com(2607:f8b0:4002:c01::1b):25) when your ISP doesn't support it?

What does a traceroute from a to b and b to a reveal?

Last edited by szboardstretcher; 03-28-2014 at 10:36 AM.
 
Old 03-28-2014, 10:50 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
What does a traceroute from a to b and b to a reveal?
I think it reveals a problem. When I do it to my domain, it just gives thirty lines of three asterisks. The server also has Apache on it, and I can access the webserver, so at least that is working. Thank you
 
Old 03-28-2014, 06:02 PM   #4
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Still struggling on this.

I believe my problem stems from comcast (my isp) blocking certain ports. I tried the following blog, but am still not successful http://blog.earth-works.com/2013/05/...ail-on-centos/

When sending an email, my log shows the following. Please provide any advise. Thank you

Code:
Mar 28 06:51:54 michaels postfix/pickup[10648]: E2C29F200C9: uid=0 from=<root>
Mar 28 06:51:54 michaels postfix/cleanup[10653]: E2C29F200C9: message-id=<20140328135154.E2C29F200C9@newlaptop.michaels.lan>
Mar 28 06:51:54 michaels postfix/qmgr[10649]: E2C29F200C9: from=<root@newlaptop.michaels.lan>, size=484, nrcpt=2 (queue active)
Mar 28 06:51:55 michaels postfix/local[10655]: E2C29F200C9: to=<world.@newlaptop.michaels.lan>, orig_to=<world.>, relay=local, delay=0.15, delays=0.1/0/0/0.04, dsn=5.1.1, status=bounced (unknown user: "world.")
Mar 28 06:51:55 michaels postfix/smtp[10656]: E2C29F200C9: to=<michael@gmail.com>, relay=smtp.comcast.net[76.96.40.155]:587, delay=0.83, delays=0.1/0/0.62/0.11, dsn=5.1.0, status=bounced (host smtp.comcast.net[76.96.40.155] said: 550 5.1.0 <root@newlaptop.michaels.lan> sender rejected : invalid sender domain (in reply to MAIL FROM command))
Mar 28 06:51:55 michaels postfix/cleanup[10653]: BDE3AF200CF: message-id=<20140328135155.BDE3AF200CF@newlaptop.michaels.lan>
Mar 28 06:51:55 michaels postfix/bounce[10657]: E2C29F200C9: sender non-delivery notification: BDE3AF200CF
Mar 28 06:51:55 michaels postfix/qmgr[10649]: BDE3AF200CF: from=<>, size=2809, nrcpt=1 (queue active)
Mar 28 06:51:55 michaels postfix/qmgr[10649]: E2C29F200C9: removed
Mar 28 06:51:55 michaels postfix/local[10655]: BDE3AF200CF: to=<root@newlaptop.michaels.lan>, relay=local, delay=0.1, delays=0.04/0/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 28 06:51:55 michaels postfix/qmgr[10649]: BDE3AF200CF: removed
 
Old 03-28-2014, 06:47 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Yippy!

In /etc/postfix/main.cf, I had myhostname = newlaptop.michaels.lan and mydomain = mysite.com. I changed myhostname=mysite.com as well, and the email was sent!

Still don't think I have everything set up correct, but at least I am making progress.

Any comments on my configuration would be much appreciated.

THanks
 
  


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
Postfix email sending program not working aplusguy333 Linux - Newbie 2 10-17-2011 03:53 AM
Blacklist Email Sending on Postfix carlosinfl Linux - Server 1 04-15-2010 05:14 PM
Postfix: Sending Email limit ae14balt1c Linux - Newbie 2 01-21-2010 01:27 AM
Postfix not sending email cornish Linux - Server 2 03-23-2009 07:51 AM
Postfix w/ spamassassin is sending extra copies of email nino_of_qubic Linux - Server 0 03-14-2008 04:48 PM


All times are GMT -5. The time now is 04:48 AM.

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