LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-28-2006, 09:42 PM   #46
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

Ok, now tell me, do you have two network cards on your machine, and are these the correct IP subnets for them?

72.232.208.44/32 72.232.208.45/32

For some reason postfix seems to be listening on localhost

Quote:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9708/master
but not on what it thinks are your networks.

If your network cards are not on 72.232.208.44/32 and 72.232.208.45/32, you should set the parameter mynetworks in main.cf

Have you tried sending a mail from the machine running postfix (it's not clear from earlier posts which machine you were sending test messages from).

If not, ssh to the machine, and type

# mail -s "test message" some_user@your.domain

Have a look at tail /var/log/messages
 
Old 07-29-2006, 01:54 AM   #47
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
the message i sent from within the machine (no outside coming email) got suck in the mail queue i tried to flush the queue but it just stayed there

what does that mean?

edit: btw this is the comand i used to try and flush my mail queue

/usr/sbin/postqueue -c /etc/postfix -f

is this wrong?

Last edited by MrSako; 07-29-2006 at 02:09 AM.
 
Old 07-29-2006, 02:14 AM   #48
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
in my main.cf file

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

should i take out the # and make myhostname = vps.gofastgaming.com according to the people i lease my server from the hostname of my VPS server is vps.gofastgaming.com, or is it expecting me to type mail.gofastgaming.com?

btw how do i know what my network card is "set on" those are the IPs of server. as i said this is on a VPS im renting and i dont have access to the actual hookingup up of the server i just got root access to it pretty much

Last edited by MrSako; 07-29-2006 at 02:17 AM.
 
Old 07-29-2006, 03:37 AM   #49
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
The hostname doesn't matter too much, so either of those will be file.

Use the command ifconfig to get the IPs. It's the inet addr: that you want
 
Old 07-29-2006, 03:54 AM   #50
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 postqueue -f will suffice, but can you post the output of

postqueue -p
 
Old 07-29-2006, 04:25 AM   #51
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
ok i fixed the mynetworks variable then restarted postifx. the mail got stuck in the queue (between 2 local users). is there something thats cauing mail to not automaticaly go through the mail queue?

i also tried to send an email from an outside user to one on the server, it didnt make it to the queue (yet atleast)

edit: on the webmin postfix module theres a thing that prints out configuration, i put it into a pastebin, since it used ot be all in html tables the information it printed out kind of lost its readiablity. mainly i think you should look at lines 400 and below maybe something is goofed?

http://mrsako.pastebin.ca/104844

Last edited by MrSako; 07-29-2006 at 04:31 AM.
 
Old 07-29-2006, 05:50 AM   #52
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
What does webmin tell you about the queue? Here's an entry I put in that I knew would fail

911FAA82E4 Sat Jul 29 19:31:03 bill@example.com slyg@anz.com.au 1 kB connect to anz.com.au[202.2.56.40]: Connection timed out

There has got to be something in your logs.

If you try to flush the queue, are you sure there is nothing in /var/log/maillog?
 
Old 07-29-2006, 01:23 PM   #53
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
this is whats in my mialog for for the 29th i dont see any timed out stuff thoguh

http://mrsako.pastebin.ca/105435
 
Old 07-29-2006, 04:08 PM   #54
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
Ok, do you see the lines like
Quote:
Jul 29 00:20:50 vps postfix/bounce[16058]: fatal: unknown notify_classes value "postfix" in "postfix"
These are causing all sort of problems

Go to main.cf and comment out the lines that look like
Quote:
2bounce_notice_recipient postfix
bounce_notice_recipient postfix
delay_notice_recipient postfix
empty_address_recipient postfix
error_notice_recipient postfix
and anything similar. By default these notices will go to Postmaster, which should be setup in you aliases file by default.

Have a look at the following section of the log

Quote:
#
Jul 29 01:54:49 vps postfix/cleanup[11612]: E2326BFD602C: to=<unknown>, relay=none, delay=63, status=bounced (No recipients specified)
#
Jul 29 01:54:49 vps postfix/bounce[11647]: fatal: unknown notify_classes value "postfix" in "postfix"
#
Jul 29 01:54:50 vps postfix/cleanup[11612]: warning: premature end-of-input on private/bounce socket while reading input attribute name
#
Jul 29 01:54:50 vps postfix/cleanup[11612]: warning: E2326BFD602C: bounce message failure
#
Jul 29 01:54:50 vps postfix/master[9708]: warning: process /usr/libexec/postfix/bounce pid 11647 exit status 1
#
Jul 29 01:54:50 vps postfix/pickup[7710]: warning: maildrop/2A547BFD601D: Error writing message file
First, who do you think this mail should be going to? If you've automated something from your webserver, it doesn't seem to be addressing properly. I assume the maildrop message is related, but keep an eye on this.


This log file should be your best frient in fixing this problem, there's a lot of useful information here. Fix a little at a time - start with that bounce notification at the start of this post, then try manually sending an email to a valis user (try to root perhaps), and then look at the log.

Repost if you can't work it out.


Rgds


Bill

Last edited by billymayday; 07-29-2006 at 04:09 PM.
 
Old 07-29-2006, 05:53 PM   #55
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i dont know what maildrop is.

i havent tried to do any fancy features.

i orignialy setup postfix using yum and ive edited some files in the webmin control panel which might of casued some issues

theres a built in compose message where you can send emails from local users and automatialy it fills out the from address to be user@vps.gofastgaming.com (i dont understand why it isnt just gofastgaming.com)

i dont know what maildrop is
 
Old 07-29-2006, 06:14 PM   #56
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
There's nothing wrong with using maildrop - it's a sort of mail filtering package, I use it to sort mail into subfolders on my server rather than in the mail client.

Make those changes to main.cd I suggested in post 54.

Send a mail from the terminal to yourself, so type

# mail -s "test message" your_username_goes_here@vps.gofastgaming.com

Post the output of

# tail -20 /var/log/maillog
 
Old 07-29-2006, 07:15 PM   #57
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i did that before but i just did it again for the sake of doing it

i even cleared the log file out and restarted postfix just to sort of get a dry shot.
i did the command, the maillog file was still empty even a few minutes later.

in the mailqueue theres the message i tried to send with the status "connect to mail.gofastgaming.com[72.232.208.44]: connection refused

in a few minutes ill check the log again see if it updated
 
Old 07-29-2006, 07:19 PM   #58
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
good news!

i foud a setting called network interface for receiving mail. it was set to local host, i changed it to all then tried to flush the mailqueue, it worked! and the email was received by the correct user

i tried it with both @gofastgaming.com and @vps.gofastgaming.com both worked

the maillog file is still empty im looking into that, now im gonna try sending an emial from an outside user
 
Old 07-29-2006, 07:24 PM   #59
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
Good news. You'll get there - step by step.
 
Old 07-29-2006, 11:58 PM   #60
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
on my mail client thunderbird i succesfully downloaded email off of my server like how i want it

i still cant send mail to it though from an outside user

is this more likely a dovecott issue, postfix issue, or DNS setting issue? my postfix maillog still isnt generating any text
 
  


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 09:46 PM.

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