Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-05-2003, 04:46 PM
|
#1
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Rep:
|
Help! postfix is not working
I have postfix-1.1.11-5 running on Redhat 8.0. So far I only make modification to the /etc/postfix/main.cf. After the configuration, I still can't send and receive mail even within my localhost. I also check the SMTP and POP3 port, and both are currently listening on port 25 and 110. Is there another process I didn't do?
|
|
|
02-05-2003, 05:02 PM
|
#2
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
|
Re: Help! postfix is not working
Quote:
Originally posted by importboy03
I have postfix-1.1.11-5 running on Redhat 8.0. So far I only make modification to the /etc/postfix/main.cf. After the configuration, I still can't send and receive mail even within my localhost. I also check the SMTP and POP3 port, and both are currently listening on port 25 and 110. Is there another process I didn't do?
|
2 things that will probalby help and give others a little more info to help you. ..
What happens when you do tha following:
telnet localhost 25
telnet localhost 110
will tell not only if they are listening, but if they are somehow access restricted.
Also, what sort of changes did you make to main.cf?
|
|
|
02-05-2003, 05:25 PM
|
#3
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
Here is the message from the log /var/log/maillog:
fatal: open database /etc/postfix/transport.db: No such file or directory
warning: process /usr/libexec/postfix/smtpd pid 7397 exit status 1
warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
I tried telnet
>telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
>telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 mailserv v2001.78rh server ready
Here is the modification /etc/postfix/main.cf:
myhostname = mail.mydomain.com
mydomain = mydomain.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $mydomain, $myhostname, localhost.$mydomain
mynetworks = myservIP/28, 127.0.0.0/8
relay_domains = $mydestination
relayhosts = $mydomain
local_recipient_maps = hash:/etc/postfix/transport
alias_maps = hash:/etc/postfix/aliases
notify_classes = resource, software, bounce, policy
If anyone need any more info, please reply to this post. Thanks.
|
|
|
02-05-2003, 06:28 PM
|
#4
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
|
Quote:
Originally posted by importboy03
Here is the message from the log /var/log/maillog:
fatal: open database /etc/postfix/transport.db: No such file or directory
|
Yep. You have to convert the /etc/postfix/transport file into an transport.db file... for most the files that is done using:
postmap
for the aliases file you should use:
newaliases
Then you can try starting postfix.
HTH,
|
|
|
02-06-2003, 01:37 PM
|
#5
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
Quote:
Originally posted by gboutwel
Yep. You have to convert the /etc/postfix/transport file into an transport.db file... for most the files that is done using:
postmap
for the aliases file you should use:
newaliases
Then you can try starting postfix.
HTH,
|
gboutwel, I'm a linux newbie. How do I convert the file? I tried the following command:
cp transport trnsport.db and
postfix reload
does't work so I tried this:
newaliases transport.db
got error: fatal: alias initialization mode requires no recipient
What exactly should I do?
|
|
|
02-06-2003, 03:37 PM
|
#6
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
|
Quote:
Originally posted by importboy03
gboutwel, I'm a linux newbie. How do I convert the file? I tried the following command:
cp transport trnsport.db and
postfix reload
does't work so I tried this:
newaliases transport.db
got error: fatal: alias initialization mode requires no recipient
What exactly should I do?
|
Exactly
postmap transport
newaliases
postfix reload
That should do it.
Last edited by gboutwel; 02-06-2003 at 03:51 PM.
|
|
|
02-06-2003, 04:56 PM
|
#7
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
I tried:
postmap transport
newaliases
postfix reload
now I see it create transport.db
Now I can send and receive. Thanks so much for your help. Another problem is that all mails received is in the postfix mailbox. How can I specify to randomuser@mydomain.com? I'm in the process of keep finding in the document.
|
|
|
02-06-2003, 07:15 PM
|
#8
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
|
Quote:
Originally posted by importboy03
Another problem is that all mails received is in the postfix mailbox. How can I specify to randomuser@mydomain.com? I'm in the process of keep finding in the document. [/B]
|
Not sure there. You're starting to get past my capabilities with postifx. That, and when I got postfix working it just put randomuser@mydomain's mail into randomuser's unix mail box. I was using Mandrake 9.0.
Maybe someone else will pipe in and solve that one for you if not. Post a new thread (might have better chance for answers in Networking forum).
HTH,
|
|
|
02-06-2003, 10:30 PM
|
#9
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
Thanks for everything, gboutwel. You are very helpful. If you need me to rate for you anytime, just let me know.
|
|
|
02-06-2003, 11:49 PM
|
#10
|
Member
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Rep:
|
Routing to the users is what the alias file is for. It has comments that describe how it works. However incoming mail should automagically route to the user name, if the address "randomuser" is an actual login ID for your system. If not, then the alias file should have a line telling the server which user to send mail for "randomuser" to.
This is how "postmaster" and "webmaster" get interpreted.
I just spent three days trying to get my server to send mail out to the world. Turned out that I had a "relayhost" line in the main.cf file, and the server it referred to wouldn't accept my messages for relaying although my previous ISP had done so without question. Commenting out all the "relayhost" entries cured the problem!
Hope this helps...
|
|
|
02-07-2003, 01:42 PM
|
#11
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
Quote:
Originally posted by JimKyle
Routing to the users is what the alias file is for. It has comments that describe how it works. However incoming mail should automagically route to the user name, if the address "randomuser" is an actual login ID for your system. If not, then the alias file should have a line telling the server which user to send mail for "randomuser" to.
This is how "postmaster" and "webmaster" get interpreted.
|
Yup, I checked out the /etc/postfix/aliases. The default of all the root is to postfix. Is that the reason why all my incoming mail go into the posttfix user mailbox? I tested by changing the root value to a HUMAN (myself), but it still the same. Where else can it be to accept each individual incoming mail to the each individual mailbox?
|
|
|
02-07-2003, 01:53 PM
|
#12
|
Member
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Rep:
|
Quote:
Originally posted by importboy03
Yup, I checked out the /etc/postfix/aliases. The default of all the root is to postfix. Is that the reason why all my incoming mail go into the posttfix user mailbox? I tested by changing the root value to a HUMAN (myself), but it still the same. Where else can it be to accept each individual incoming mail to the each individual mailbox?
|
After you change the alias file, you have to update the database by executing "newaliases" and then do "postfix reload" to let the server know about the new database data. That should then take it to your own mailbox.
|
|
|
02-07-2003, 02:44 PM
|
#13
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
hmm, now that I remove myselft from aliase root (using default /etc/postfix/aliases). All the incoming mail now redirect to each user mailbox. I guess my question is now why the "mail" command to check mail always stated "No mail for userX", but it is in the mailbox when I read with "vi" /var/mail/userX file. In addition, do you know how to setup on the server side to allow SMTP and POP to work under outlook express to receive the mail from the server remotely? Any comment is welcome, thanks in advance
Last edited by importboy03; 02-07-2003 at 03:02 PM.
|
|
|
02-07-2003, 03:48 PM
|
#14
|
Member
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Rep:
|
Unfortunately I don't know the answer to this one; to send main to my Windows boxes, I address them via the Internet!
You might try putting names for the Windows boxes into your /etc/hosts file if they are not already there, and then addressing the mail using the box's name as the "@" part of the address. However most of the configuration needs to be done to Outlook Express, rather than to the server, since the server is already listening for requests on the LAN ports. I would expect delivery to be automatic, if mail is properly addressed, but you probably will have to use a user name and log in to the Windows machines in order for the routing to work properly...
Since I've avoided all the newer M$ systems, I'm not at all familiar with the details of configuring them, though!
|
|
|
02-07-2003, 06:05 PM
|
#15
|
Member
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34
Original Poster
Rep:
|
Quote:
Originally posted by JimKyle
. most of the configuration needs to be done to Outlook Express, rather than to the server, since the server is already listening for requests on the LAN ports. I would expect delivery to be automatic, if mail is properly addressed, but you probably will have to use a user name and log in to the Windows machines in order for the routing to work properly...
|
You are right. I just setup the outlook express in the MS windows to receive mail from the server, but couldn't reply to the email address that is not belong to the mail server. Does anybody know what to do to with this problem?
|
|
|
All times are GMT -5. The time now is 08:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|