HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Postfix refude to send email (http://www.howtoforge.com/forums/showthread.php?t=61674)

a3das 1st May 2013 09:01

Postfix refude to send email
 
(Postfix version) /etc/postfix/main.cf.default:mail_version = 2.3.8

(OS Version) bash-2.03#uname -a SunOS blade 5.8 Generic_108528-17 sun4u sparc SUNW,Sun-Blade-100

(changed configs)

bash-2.03# postconf -n
alias_database = dbm:/etc/aliases
alias_maps = dbm:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = imss:localhost:10025
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
debug_peer_list = 127.0.0.1
default_process_limit = 200
html_directory = no
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 10240000
mydestination = yahoo.com, localhost, localhost.$mydomain, $myhostname
mydomain = eska.com
myhostname = blade.eska.com
mynetworks = 172.16.0.0/24, 127.0.0.0/8, 192.168.0.0/24
mynetworks_style = class
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /postfix.old/postfix-2.3.8/readme_directory
relay_domains = $mydestination
relayhost = $mydomain
sample_directory = /etc/postfix
sendmail_path = /usr/lib/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 450
when i try to send an email to Gmail i get this response, which means that postfix tends to look for gmail server in loop-back network. this will fail always. response is below

sendmail xxxx@gmail.com <"tst"
<eska.hala@gmail.com>: connect to localhost[127.0.0.1]: Connection refused
--970FE58DA.1354698369/blade.eska.com
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; blade.eska.com
X-Postfix-Queue-ID: 970FE58DA
X-Postfix-Sender: rfc822; root@blade.eska.com
Arrival-Date: Wed, 5 Dec 2012 11:06:09 +0200 (Asia/Amman)
Final-Recipient: rfc822; eska.hala@gmail.com
Action: delayed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to localhost[127.0.0.1]: Connection refused
when i use what-if-mode , postfix will actually go and search for gmail server and finds it, and confirm the deliverablity of this email. response is below:

sendmail -bv xxxx@gmail.com <"test"
Dec 5 10:57:52 blade postfix/smtp[15906]: [ID 197553 mail.info] 6447958DA: to=<eska.hala@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.27]:25, delay=1.8, delays=0.08/0.03/1.5/0.26, dsn=2.1.5, status=deliverable (250 2.1.5 OK u8si15432094wiw.9)

falko 2nd May 2013 17:33

Are there any errors in your mail log (in the /var/log/ directory)?

What's the output of
Code:

netstat -tapn
?

a3das 5th May 2013 09:13

Thank you for you reply ...

i get this on /var/log/syslog
Quote:

Dec 13 12:39:41 blade postfix/smtp[642]: [ID 197553 mail.info] 631EA58C5: to=<eska.hala@gmail.com>, relay=none, delay=268524, delays=268512/12/0.01/0, dsn=4.4.1, status=deferred (connect to localhost[127.0.0.1]: Connection refused)
this the output: (-t command is not supported)

Quote:

bash-2.03# netstat -apn

Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
eri0 172.16.0.170 255.255.255.255 00:1e:0b:a9:b6:98
eri0 172.16.0.33 255.255.255.255 00:1c:25:32:74:10
eri0 172.16.0.1 255.255.255.255 00:10:b5:c0:75:36
eri0 172.16.0.186 255.255.255.255 00:1c:25:4d:f3:d4
eri0 172.16.0.165 255.255.255.255 00:1c:25:4d:f4:43
eri0 172.16.0.151 255.255.255.255 00:27:0e:2d:b9:56
eri0 172.16.0.134 255.255.255.255 00:1c:c0:d3:48:ea
eri0 172.16.0.221 255.255.255.255 SP 00:03:ba:08:7c:d1
eri0 172.16.0.214 255.255.255.255 00:1e:90:75:e8:74
eri0 172.16.0.205 255.255.255.255 3c:97:0e:4e:f8:80
eri0 172.16.0.200 255.255.255.255 58:b0:35:87:19:2d
eri0 172.16.0.199 255.255.255.255 00:e0:1c:3c:5a:31
eri0 172.16.0.60 255.255.255.255 00:1c:c0:95:ff:7d
eri0 172.16.0.21 255.255.255.255 78:2b:cb:d6:96:a1
eri0 172.16.0.22 255.255.255.255 b8:88:e3:50:eb:e5
eri0 172.16.0.121 255.255.255.255 00:1c:bf:69:12:56
eri0 172.16.0.122 255.255.255.255 00:1c:25:4d:d1:50
eri0 172.16.0.123 255.255.255.255 dc:0e:a1:08:41:fe
eri0 10.237.153.165 255.255.255.255 00:21:27:ed:99:a5
eri0 172.16.0.93 255.255.255.255 00:1c:25:4d:f3:48
eri0 172.16.0.89 255.255.255.255 74:e5:43:7f:64:bd
eri0 172.16.0.84 255.255.255.255 38:60:77:29:cf:7d
eri0 172.16.0.85 255.255.255.255 90:a4:de:2d:57:c8
eri0 172.16.0.87 255.255.255.255 e8:3e:b6:b3:b8:d7
eri0 172.16.0.80 255.255.255.255 38:aa:3c:77:24:87
eri0 172.16.0.82 255.255.255.255 00:1c:c0:a5:7c:72
eri0 172.16.0.72 255.255.255.255 00:1c:25:55:ce:ea
eri0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00

a3das 14th May 2013 08:46

any boddy
 
any help everyone ??

dalitso 14th May 2013 12:45

Can you send an email to your own domain(locally)? that is, to let's say, user@eska.com

a3das 14th May 2013 15:52

same as gmail
 
i got the same respons as if sent it to a gmail

HTML Code:

May 14 15:43:32 blade postfix/smtp[20568]: [ID 197553 mail.info] C3C7A59EF: to=<user@eska.com>, relay=none, delay=0.11, delays=0.08/0.03/0.01/0, dsn=4.4.1, status=deferred (connect to localhost[127.0.0.1]: Connection refused)


All times are GMT +2. The time now is 19:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.