Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Postfix not playing nice
PostPosted: Tue Mar 06, 2007 11:42 pm 
Offline
Senior Newbie
User avatar

Joined: Tue Mar 06, 2007 11:26 pm
Posts: 6
Website: http://www.jwservices.ath.cx
Location: Hamilton, New Zealand
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


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 12:03 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 10:32 pm
Posts: 246
Location: NJ, USA
Does this help any?

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

-Tom


Top
   
PostPosted: Wed Mar 07, 2007 12:34 am 
Offline
Senior Newbie
User avatar

Joined: Tue Mar 06, 2007 11:26 pm
Posts: 6
Website: http://www.jwservices.ath.cx
Location: Hamilton, New Zealand
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


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 5:22 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
Try looking at the last line and figure out what it's trying to connect to and why it's failing.


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 9:21 am 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
"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.


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 4:04 pm 
Offline
Senior Newbie
User avatar

Joined: Tue Mar 06, 2007 11:26 pm
Posts: 6
Website: http://www.jwservices.ath.cx
Location: Hamilton, New Zealand
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


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2007 3:26 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
So what's the setup here, the linode takes the mail then sends it to another box?


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2007 8:22 pm 
Offline
Senior Newbie
User avatar

Joined: Tue Mar 06, 2007 11:26 pm
Posts: 6
Website: http://www.jwservices.ath.cx
Location: Hamilton, New Zealand
my mail is sent to linode which is then sent ot my own server at home


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2007 10:44 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
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

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Mon Mar 12, 2007 6:44 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
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


Top
   
 Post subject:
PostPosted: Mon Mar 12, 2007 7:23 pm 
Offline
Senior Newbie
User avatar

Joined: Tue Mar 06, 2007 11:26 pm
Posts: 6
Website: http://www.jwservices.ath.cx
Location: Hamilton, New Zealand
Hi there all

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

all is working now

THanks for your help


Top
   
 Post subject:
PostPosted: Fri Mar 16, 2007 11:19 am 
Offline
Junior Member

Joined: Mon Apr 26, 2004 5:03 pm
Posts: 47
Please tell us what you did to solve the problem, so the next person to find this thread doesn't get left hanging :D


Top
   
 Post subject:
PostPosted: Fri Mar 16, 2007 11:38 am 
Offline
Senior Newbie
User avatar

Joined: Tue Mar 06, 2007 11:26 pm
Posts: 6
Website: http://www.jwservices.ath.cx
Location: Hamilton, New Zealand
on it's way


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group