LinuxQuestions.org
Visit Jeremy's Blog.
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 07-26-2006, 12:25 AM   #16
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30

here it is: doesnt look very imformative though (perhaps the log info your expecting is in a different file?)

> tail -20 /var/log/maillog
Jul 25 18:29:01 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 18:29:02 vps postfix/master[17937]: daemon started -- version 2.1.5
Jul 25 18:40:00 vps postfix/postfix-script: stopping the Postfix mail system
Jul 25 18:40:00 vps postfix/master[17937]: terminating on signal 15
Jul 25 18:40:03 vps dovecot: Killed with signal 15
Jul 25 18:40:12 vps dovecot: Dovecot starting up
Jul 25 18:40:14 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 18:40:14 vps postfix/master[22487]: daemon started -- version 2.1.5
Jul 25 20:40:11 vps postfix/postfix-script: stopping the Postfix mail system
Jul 25 20:40:11 vps postfix/master[22487]: terminating on signal 15
Jul 25 20:40:15 vps dovecot: Killed with signal 15
Jul 25 20:40:21 vps dovecot: Dovecot starting up
Jul 25 20:40:22 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 20:40:22 vps postfix/master[22063]: daemon started -- version 2.1.5
Jul 25 21:01:37 vps postfix/postfix-script: stopping the Postfix mail system
Jul 25 21:01:37 vps postfix/master[22063]: terminating on signal 15
Jul 25 21:01:40 vps dovecot: Killed with signal 15
Jul 25 21:01:51 vps dovecot: Dovecot starting up
Jul 25 21:01:52 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 21:01:52 vps postfix/master[30404]: daemon started -- version 2.1.5
 
Old 07-26-2006, 12:39 AM   #17
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you stopping and starting Postfix all the time?

If you are, I'll ignore the post, but as I asked before, send a mail to the admin, and redo the tail command about 30 seconds later. We need to see what it says about the passage of the email, so if you wait 5 or 10 minutes, there'll be other stuff at the end of the log.

Yes this is the correct file.
 
Old 07-26-2006, 04:02 AM   #18
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
at dnsreport.com i got this about my mail server DNS record

ERROR: I could not complete a connection to any of your mailservers!

mail.domain.com: Timed out [Last data sent: [Did not connect]]

If this is a timeout problem, note that the DNS report only waits about 40 seconds for responses, so your mail may work fine in this case but you will need to use testing tools specifically designed for such situations.

i think this is why nothing will show up in the log

ive rebooted the server a few times since installing and it starts on systme start which is why the log says that

i did the command again it just shows starting and stopping of the server.

i think my BIND DNS records might just be screwed. it turns out the guy who was helping me was wrong so its back to the DNS record drawing board

Last edited by MrSako; 08-06-2006 at 03:59 AM.
 
Old 07-26-2006, 06:25 AM   #19
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If gofastgaming.com is your domain, the DNS is accurate, assuming the mail server is located at 72.232.208.44. Look at this:

Code:
jim@worklap:~$ dig -t mx gofastgaming.com

; <<>> DiG 9.3.2 <<>> -t mx gofastgaming.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40695
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1

;; QUESTION SECTION:
;gofastgaming.com.              IN      MX

;; ANSWER SECTION:
gofastgaming.com.       1       IN      MX      10 mail.gofastgaming.com.

;; AUTHORITY SECTION:
gofastgaming.com.       1       IN      NS      ns1.gofastgaming.com.
gofastgaming.com.       1       IN      NS      ns2.gofastgaming.com.
gofastgaming.com.       1       IN      NS      vps.gofastgaming.com.

;; ADDITIONAL SECTION:
mail.gofastgaming.com.  1       IN      A       72.232.208.44

;; Query time: 79 msec
;; SERVER: 207.69.188.186#53(207.69.188.186)
;; WHEN: Wed Jul 26 06:01:24 2006
;; MSG SIZE  rcvd: 125
Looks like ns1.gofastgaming.com is also your mail server. That is fine, but you should take out the vps.gofastgaming.com as a name server, because it doesn't have an A record on the gofastgaming.com domain. You either need to define it, or remove it as a nameserver.

Since that one address is doing double duty as a nameserver and mail server, it obviously has connection to the net as the DNS can be reached, but the mail cannot.
Code:
jim@worklap:~$ telnet mail.gofastgaming.com 25
Trying 72.232.208.44...
telnet: Unable to connect to remote host: Connection refused
So unless you're doing something with a firewall to split the traffic going to 72.232.208.44 between 2 different boxes, the mail server is not functioning.

Also FYI, you only need to reboot a linux box when you update a kernel. You can always stop/start daemons and services without rebooting.

The good news is as long as the IP of your mail server is correct, the DNS is fine.

Peace,
JimBass

Last edited by JimBass; 07-26-2006 at 06:26 AM.
 
Old 07-26-2006, 06:54 AM   #20
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
I will recomend going the qmail way , a bit late though , but worth it , and u wont regret it
 
Old 07-26-2006, 09:12 AM   #21
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i originally had taken the VPS stuff out, but then i noticed domain.com wouldnt get anywhere in my browser. so i put it back to how its last known working configuration.

this is all located on one box which has 2 IPs. (i dont think even having a ns2 is even worth existing since its apart of the same machine, just the domain is set to having 2 NSs at the registrar and im too lazy to change it)

i dont see how using the same box for a mail server is causing the connection to be refused though.



one more thing this isn't as related. but dnsreport.com says my nameservers are open or something. and im supposed to put some lines into my named.conf file to close them which prevents DDOS. i click on the thing thats supposed to explain what to put in but it didn't make a whole lot of sense

im using BIND

Last edited by MrSako; 08-06-2006 at 03:59 AM.
 
Old 07-26-2006, 04:19 PM   #22
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i tried sending an emial and doing the tail command.

> tail -20 /var/log/maillog
Jul 25 18:40:14 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 18:40:14 vps postfix/master[22487]: daemon started -- version 2.1.5
Jul 25 20:40:11 vps postfix/postfix-script: stopping the Postfix mail system
Jul 25 20:40:11 vps postfix/master[22487]: terminating on signal 15
Jul 25 20:40:15 vps dovecot: Killed with signal 15
Jul 25 20:40:21 vps dovecot: Dovecot starting up
Jul 25 20:40:22 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 20:40:22 vps postfix/master[22063]: daemon started -- version 2.1.5
Jul 25 21:01:37 vps postfix/postfix-script: stopping the Postfix mail system
Jul 25 21:01:37 vps postfix/master[22063]: terminating on signal 15
Jul 25 21:01:40 vps dovecot: Killed with signal 15
Jul 25 21:01:51 vps dovecot: Dovecot starting up
Jul 25 21:01:52 vps postfix/postfix-script: starting the Postfix mail system
Jul 25 21:01:52 vps postfix/master[30404]: daemon started -- version 2.1.5
Jul 26 01:40:04 vps postfix/postfix-script: stopping the Postfix mail system
Jul 26 01:40:04 vps postfix/master[30404]: terminating on signal 15
Jul 26 01:40:05 vps dovecot: Killed with signal 15
Jul 26 01:40:18 vps dovecot: Dovecot starting up
Jul 26 01:40:20 vps postfix/postfix-script: starting the Postfix mail system
Jul 26 01:40:20 vps postfix/master[13681]: daemon started -- version 2.1.5


i havent restarted anything to my knowledge everythings been running non stop since yesterday
 
Old 07-26-2006, 04:29 PM   #23
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
obviously theres something wrong with my mail server setup

do you think its a problem with my postfix config or my dovecot config?
 
Old 07-26-2006, 04:46 PM   #24
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm a little stumped, but tell me, did you run system-switch-mail to change MTA from sendmail to postfix? This is a utility that tells the system which MTA to use.

If not, see if it's on you system, otherwise you'll need to install it.


Rgds

Edit - see http://elibrary.fultus.com/technical...witchmail.html

Last edited by billymayday; 07-26-2006 at 04:49 PM.
 
Old 07-26-2006, 06:17 PM   #25
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i havent, but would it matter? i had sendmail installed but nothing ever happened with it
 
Old 07-26-2006, 07:11 PM   #26
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Yes, absolutely.

Make sure you run, I think this is probably your problem.

Edit - ps - once you run it, try sending a mail again and re-post the log

Last edited by billymayday; 07-26-2006 at 07:13 PM.
 
Old 07-26-2006, 07:51 PM   #27
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i installed it but..


> system-switch-mail
TERM environment variable needs set.

this is on a VPS im renting. i know they set me up with a messedup enviroment. is there a simple single line command i can send to the program to tell it im using postfix now?
 
Old 07-26-2006, 07:53 PM   #28
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think you need to ask them if you are able to switch MTAs

But just to confirm, sendmail isn't still running is it?
 
Old 07-26-2006, 09:11 PM   #29
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i dont need their permission just they have a real messed up way abuot setting up peoples VPSs

should i try installing snemdail again? (and uninastalling postfix)
 
Old 07-26-2006, 09:17 PM   #30
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I've put a post on the fedora forum to try and find out what changes system-switch-mail makes to the system.

There's clearly something funny with yours that postfix is stopping and starting all the time.


Why don't you have a look at you cron jobs to make sure there isn't something weird in there.


I didn't really mean getting their permission, more will it work given their setup.


Rgds

Last edited by billymayday; 07-26-2006 at 09:50 PM.
 
  


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
Putting together my first Linux box, suggestions wanted Lazy Foo' Linux - Hardware 1 12-03-2005 02:41 AM
sendmail server mail box creation problems kjsubbu Linux - Networking 0 08-25-2003 06:47 AM
mail server behind linux box antken Linux - Networking 6 02-18-2003 03:07 PM


All times are GMT -5. The time now is 04:27 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