Linode Forum
https://forum.linode.com/

Postfix not playing nice
https://forum.linode.com/viewtopic.php?f=11&t=2643
Page 1 of 1

Author:  Jonnowood [ Tue Mar 06, 2007 11:42 pm ]
Post subject:  Postfix not playing nice

I've searched all over the place to find a solution but with no luck Pease help

Here is a output from the /var/log/maillog
Code:
Mar  7 16:23:37 linux sendmail[14160]: l273NZdh014160: from=root, size=85, class=0, nrcpts=1, msgid=<200703070323.l273NZdh014160@linux.jwservices.ath.cx>, relay=root@localhost
Mar  7 16:23:37 linux postfix/smtpd[14161]: connect from linux.jwservices.ath.cx[127.0.0.1]
Mar  7 16:23:37 linux sendmail[14160]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Mar  7 16:23:37 linux postfix/smtpd[14161]: BAD7A66788: client=linux.jwservices.ath.cx[127.0.0.1], sasl_sender=root@linux.jwservices.ath.cx
Mar  7 16:23:37 linux postfix/cleanup[14168]: BAD7A66788: message-id=<200703070323.l273NZdh014160@linux.jwservices.ath.cx>
Mar  7 16:23:37 linux postfix/qmgr[12001]: BAD7A66788: from=<root@linux.jwservices.ath.cx>, size=625, nrcpt=1 (queue active)
Mar  7 16:23:37 linux sendmail[14160]: l273NZdh014160: to=sales@jwcomputers.ath.cx, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:00, mailer=relay, pri=30085, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as BAD7A66788)
Mar  7 16:23:37 linux postfix/smtpd[14161]: disconnect from linux.jwservices.ath.cx[127.0.0.1]
Mar  7 16:23:38 linux postfix/smtp[14169]: connect to jwservices.ath.cx[125.238.160.65]: Connection refused (port 25)
Mar  7 16:23:38 linux postfix/smtp[14169]: BAD7A66788: to=<sales@jwservices.ath.cx>, relay=none, delay=1, status=deferred (connect to jwservices.ath.cx[125.238.160.65]: Connection refused)
Mar  7 16:25:11 linux postfix/qmgr[12001]: 805DD6648E: from=<root@linux.jwservices.ath.cx>, size=725, nrcpt=1 (queue active)
Mar  7 16:25:11 linux postfix/qmgr[12001]: 4EF586673E: from=<root@linux.jwservices.ath.cx>, size=637, nrcpt=1 (queue active)
Mar  7 16:25:11 linux postfix/smtp[14178]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Mar  7 16:25:11 linux postfix/smtp[14180]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Mar  7 03:25:11 linux postfix/smtp[14178]: 805DD6648E: to=<jonathanwood27@gmail.com>, relay=none, delay=112959, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Mar  7 03:25:11 linux postfix/smtp[14180]: 4EF586673E: to=<sales@jwservices.ath.cx>, relay=none, delay=100831, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)

and here is a copy of my main.cf (Note i've removed the comments)
Code:
mail_owner = postfix
mydomain = jwservices.ath.cx
myorigin = $mydomain
inet_interfaces = all
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.8/samples
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
myhostname = linux.jwservices.ath.cx
mynetworks = 127.0.0.0/8
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recip$
#content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings


If you need anything else to help solve this problem i'll be happy to help

Author:  tasaro [ Wed Mar 07, 2007 12:03 am ]
Post subject: 

Does this help any?

http://www.postfix.org/postconf.5.html#mydestination

-Tom

Author:  Jonnowood [ Wed Mar 07, 2007 12:34 am ]
Post subject:  that help a bit but now its saying

i did as the site said and then restarted postfix

here is the tail of the maillog
Code:
Mar  7 17:28:09 linux sendmail[14633]: alias database /etc/aliases rebuilt by root
Mar  7 17:28:09 linux sendmail[14633]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Mar  7 17:28:10 linux postfix/postfix-script: starting the Postfix mail system
Mar  7 17:28:10 linux postfix/master[14679]: daemon started -- version 2.2.8, configuration /etc/postfix
Mar  7 17:30:04 linux sendmail[14693]: l274U2ZH014693: from=root, size=56, class=0, nrcpts=1, msgid=<200703070430.l274U2ZH014693@linux.jwservices.ath.cx>, relay=root@localhost
Mar  7 17:30:04 linux postfix/smtpd[14694]: connect from linux.jwservices.ath.cx[127.0.0.1]
Mar  7 17:30:05 linux sendmail[14693]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Mar  7 17:30:05 linux postfix/trivial-rewrite[14697]: warning: do not list domain jwservices.ath.cx in BOTH mydestination and virtual_mailbox_domains
Mar  7 17:30:05 linux postfix/smtpd[14694]: 28579668C3: client=linux.jwservices.ath.cx[127.0.0.1], sasl_sender=root@linux.jwservices.ath.cx
Mar  7 17:30:05 linux postfix/cleanup[14702]: 28579668C3: message-id=<200703070430.l274U2ZH014693@linux.jwservices.ath.cx>
Mar  7 17:30:05 linux sendmail[14693]: l274U2ZH014693: to=sales@jwservices.ath.cx, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=30056, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 28579668C3)
Mar  7 17:30:05 linux postfix/qmgr[14682]: 28579668C3: from=<root@linux.jwservices.ath.cx>, size=590, nrcpt=1 (queue active)
Mar  7 17:30:05 linux postfix/trivial-rewrite[14697]: warning: do not list domain jwservices.ath.cx in BOTH mydestination and virtual_mailbox_domains
Mar  7 17:30:05 linux postfix/smtpd[14694]: disconnect from linux.jwservices.ath.cx[127.0.0.1]
Mar  7 17:30:05 linux postfix/smtp[14703]: connect to jwservices.ath.cx[125.238.160.65]: Connection refused (port 25)
Mar  7 17:30:05 linux postfix/smtp[14703]: 28579668C3: to=<sales@jwservices.ath.cx>, relay=none, delay=0, status=deferred (connect to jwservices.ath.cx[125.238.160.65]: Connection refused)


Now I’m completely confused

Thanks tasaro for your help

Author:  OverlordQ [ Wed Mar 07, 2007 5:22 am ]
Post subject: 

Try looking at the last line and figure out what it's trying to connect to and why it's failing.

Author:  gmt [ Wed Mar 07, 2007 9:21 am ]
Post subject: 

"conection refused" looks like a port is closed, which looks weird because it comes from 127.0.0.1 (localhost).
I never see 127.0.0.1 in my postfix logs.

"connect to jwservices.ath.cx[125.238.160.65]: Connection refused) " look like outward ports are blocked too.

Author:  Jonnowood [ Wed Mar 07, 2007 4:04 pm ]
Post subject: 

Hi there,

I've checked my router, and ports 21,22,25,80,110 are all being forwarded to the box, thats what is confusing to me

for your info jwservices.ath.cx is the domain that i'm using which is updated via dyndns

Author:  OverlordQ [ Sun Mar 11, 2007 3:26 am ]
Post subject: 

So what's the setup here, the linode takes the mail then sends it to another box?

Author:  Jonnowood [ Sun Mar 11, 2007 8:22 pm ]
Post subject: 

my mail is sent to linode which is then sent ot my own server at home

Author:  Internat [ Sun Mar 11, 2007 10:44 pm ]
Post subject: 

are u sure ur isp doesnt filter out 25 at home? Most isps ive been with, granted im in australia, seem to filter out 25/80 to prevent spamming etc.. might be worth trying to netcat from ur linode to ur server, or even nmaping to see if the ports are actually open

Author:  zunzun [ Mon Mar 12, 2007 6:44 am ]
Post subject: 

Internat wrote:
are u sure ur isp doesnt filter out 25 at home?


Here is a good photo of the Great Ziggurat at Ur:

http://upload.wikimedia.org/wikipedia/e ... 1_2004.jpg

Resolution is 1600 x 1200 pixels, you can see some of the royal tombs in the foreground.

James

Author:  Jonnowood [ Mon Mar 12, 2007 7:23 pm ]
Post subject: 

Hi there all

i've found the problem :lol: :lol: :lol: :lol:

all is working now

THanks for your help

Author:  jhmartin [ Fri Mar 16, 2007 11:19 am ]
Post subject: 

Please tell us what you did to solve the problem, so the next person to find this thread doesn't get left hanging :D

Author:  Jonnowood [ Fri Mar 16, 2007 11:38 am ]
Post subject: 

on it's way

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/