Hello,
I'm new on this list, so forgive me if I'm back on an
already discussed thing, but I didn't find in in archives
I try to set a mail server with a suse 9.0 on a gateway.
I described my work here:
http://jdanield.free.fr/wikini/wakka.php?wiki=ConfigurerPostfix
but it's in french so I will summarise here.
my config is:
client<--->gateway (mecum, domain dodin.org)<--->web
I wan to store all my mails on the gateway (in fact server,
gateway, firewall).
right now I have postfix and gpopper installed.
I can send mails from the client to the web from the client
and from the gateway (kmail ou mail), but
* I can't send mail from a account of the gateway to an
other account of the same gateway. gives me no error but
mail vanishes (with "mail") or gives me an "domain not
found" error with kmail (set from the gateway to the same
acciunt. dns resolution by /etc/hosts)
* I can neither send a mail from the client to the gateway
* I can't receive mails on the gateway from the net try
jdd@dodin.org if you wan't. Mails vanishes... no error, no
return, I get cc's (to my ISP server).
I first tried with main.cf (postfix) raw from suse install,
didn't work (all mails refused). I comment out all the suse
stuff at the end of the file and it worked as said.
I added this:
myorigin = mecum perso dodin.org localhost
#le 12 juillet
#mydestination = mecum.perso localhost.perso dodin.org
mydomain = dodin.org
myhostname = mecum.dodin.org
mynetworks = 127.0.0.0/8 10.0.0.0/8
relay_domains = dodin.org
#13 07 05
mydestination = perso dodin.org localhost.perso mecum.perso
mecum.dodin.org
relay_domains = dodin.org localhost perso
and got at least cohérent headings for messages sent through
the gateway.
/var/log/mail gives this for my last try:
Jul 14 10:02:46 mecum postfix/qmgr[1762]: 3083C3FB6D:
from=
On 7/14/05, jdd sur free
Hello, I'm new on this list, so forgive me if I'm back on an already discussed thing, but I didn't find in in archives
I try to set a mail server with a suse 9.0 on a gateway.
I described my work here: http://jdanield.free.fr/wikini/wakka.php?wiki=ConfigurerPostfix but it's in french so I will summarise here.
my config is:
client<--->gateway (mecum, domain dodin.org)<--->web
I wan to store all my mails on the gateway (in fact server, gateway, firewall).
right now I have postfix and gpopper installed.
I can send mails from the client to the web from the client and from the gateway (kmail ou mail), but
* I can't send mail from a account of the gateway to an other account of the same gateway. gives me no error but mail vanishes (with "mail") or gives me an "domain not found" error with kmail (set from the gateway to the same acciunt. dns resolution by /etc/hosts)
* I can neither send a mail from the client to the gateway
* I can't receive mails on the gateway from the net try jdd@dodin.org if you wan't. Mails vanishes... no error, no return, I get cc's (to my ISP server).
I first tried with main.cf (postfix) raw from suse install, didn't work (all mails refused). I comment out all the suse stuff at the end of the file and it worked as said. I added this: myorigin = mecum perso dodin.org localhost
#le 12 juillet #mydestination = mecum.perso localhost.perso dodin.org mydomain = dodin.org myhostname = mecum.dodin.org mynetworks = 127.0.0.0/8 10.0.0.0/8 relay_domains = dodin.org
#13 07 05 mydestination = perso dodin.org localhost.perso mecum.perso mecum.dodin.org relay_domains = dodin.org localhost perso
and got at least cohérent headings for messages sent through the gateway.
/var/log/mail gives this for my last try:
Jul 14 10:02:46 mecum postfix/qmgr[1762]: 3083C3FB6D: from=
, size=943, nrcpt=1 (queue active) message to my isp, receuved
Jul 14 10:02:47 mecum postfix/qmgr[1762]: 3083C3FB6D: to=
, relay=none, delay=3099, status=deferred (transport is unavailable) this leads to the problem, probably
Jul 14 10:03:07 mecum postfix/qmgr[1762]: warning: connect to transport local: Connection refused
I have this any minute...
any idea? may be the master.cf local host config?
Hi, yes, I think so.. as I read your descriptions you probably tried to set up a mail gateway and searched for some hints for creating a good one. One thing is to block local delivery mail to keep out spam mails from a gateway / mailrelay. Could this be? But if I undestand you right, you do not want to avoid local delivery in your case, as you use it as a complete mailserver and not just as a gateway. So, I think you could have commented out the local delivery line(s) in your master.cf which would explain this problem. check your master.cf for these lines: local unix - n n - - local localhost:10025 inet n - n - - smtpd -o content_filter= hope this helps.. Markus
On Thu, 2005-07-14 at 10:07 +0200, jdd sur free wrote:
I can send mails from the client to the web from the client and from the gateway (kmail ou mail), but
* I can't send mail from a account of the gateway to an other account of the same gateway. gives me no error but mail vanishes (with "mail") or gives me an "domain not found" error with kmail (set from the gateway to the same acciunt. dns resolution by /etc/hosts)
* I can neither send a mail from the client to the gateway
* I can't receive mails on the gateway from the net try jdd@dodin.org if you wan't. Mails vanishes... no error, no return, I get cc's (to my ISP server).
I first tried with main.cf (postfix) raw from suse install, didn't work (all mails refused). I comment out all the suse stuff at the end of the file and it worked as said. I added this: myorigin = mecum perso dodin.org localhost
#le 12 juillet #mydestination = mecum.perso localhost.perso dodin.org mydomain = dodin.org myhostname = mecum.dodin.org mynetworks = 127.0.0.0/8 10.0.0.0/8
From the sample postfix docs., the parameters (in a list) are comma separated. Yours are separated by a space - try comma separated list in mynetworks, mydestination etc.
relay_domains = dodin.org
I suggest remove this, even though it does not do any harm. By default postfix picks this up from mydomain and will accept messages only for this domain from the 'Net.
#13 07 05 mydestination = perso dodin.org localhost.perso mecum.perso mecum.dodin.org relay_domains = dodin.org localhost perso ... any idea? may be the master.cf local host config?
Typically, the "stock" master.cf is sufficient to do what you are trying
to do. I suggest keep tweaking the params in main.cf. Is .perso a
valid TLD? I tried "whois mecum.perso" and it complained it did not
know of a whois server for .perso object. Perhaps this is what postfix
is complaining about as well.
I suggest you go in the following manner to setup postfix.
1) Get your Intranet clients (10.0.0.0/8) to send outbound emails
(relay) thru postfix.
2) For local Intranet accounts send mail in the form
<user>@mecum.dodin.org (this makes the host fully qualified)
3) Ensure MX for dodin.org is pointing to the correct IP address of the
server where postfix is running.
4) Get postfix to accept messages from the 'Net. Once this is working,
mail to <user>@dodin.org will work as well i.s.o <user>@mecum.dodin.org.
HTH,
--
Arun Khan
Arun Khan wrote:
#mydestination = mecum.perso localhost.perso dodin.org mydomain = dodin.org myhostname = mecum.dodin.org mynetworks = 127.0.0.0/8 10.0.0.0/8
From the sample postfix docs., the parameters (in a list) are comma separated. Yours are separated by a space - try comma separated list in mynetworks, mydestination etc.
That should work, but it is more secure to use commata, especially if you introduce line breaks later.
relay_domains = dodin.org
Whoa, haven't really noticed that one!
I suggest remove this, even though it does not do any harm. By default postfix picks this up from mydomain and will accept messages only for this domain from the 'Net.
It will do a lot of harm! dodin.org is a local domain and already handled by mydestination. A domain can NOT be assigned to two different address classes. The parameter relay_domains should be undefined here. Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com
jdd sur free wrote:
my config is:
client<--->gateway (mecum, domain dodin.org)<--->web
I wan to store all my mails on the gateway (in fact server, gateway, firewall).
If all that functionality is combined into one server you should be aware that you have to be careful not to expose your internal net unvoluntarily to the internet.
right now I have postfix and gpopper installed.
gpopper? Do you mean qpopper?
I can send mails from the client to the web from the client and from the gateway (kmail ou mail), but
So you can give the mail to postfix, and postfix sends the mail correctly to the internet.
* I can't send mail from a account of the gateway to an other account of the same gateway. gives me no error but mail vanishes (with "mail") or gives me an "domain not found" error with kmail (set from the gateway to the same acciunt. dns resolution by /etc/hosts)
The DNS error needs to be solved before any other experiments. (^-^)
* I can neither send a mail from the client to the gateway
Okay, no I am confused. Didn't you say that you could send a mail to postfix from the client?
* I can't receive mails on the gateway from the net try jdd@dodin.org if you wan't. Mails vanishes... no error, no return, I get cc's (to my ISP server).
Mails don't vanish, at least not with postfix. (^-^) What does the command "mailq" tell about mails in the queue?
I first tried with main.cf (postfix) raw from suse install, didn't work (all mails refused). I comment out all the suse stuff at the end of the file and it worked as said. I added this: myorigin = mecum perso dodin.org localhost
Sorry, that information is not sufficient to solve your problems. Please post the output of: postconf -n grep -v '^#' /etc/postfix/master.cf cat /etc/postfix/transport cat /etc/xinetd/qpopper cat /etc/xinetd chkconfig --list| grep ":on" netstat -tulpen
/var/log/mail gives this for my last try:
Jul 14 10:02:46 mecum postfix/qmgr[1762]: 3083C3FB6D: from=
, size=943, nrcpt=1 (queue active) message to my isp, receuved
Jul 14 10:02:47 mecum postfix/qmgr[1762]: 3083C3FB6D: to=
, relay=none, delay=3099, status=deferred (transport is unavailable) this leads to the problem, probably
Jul 14 10:03:07 mecum postfix/qmgr[1762]: warning: connect to transport local: Connection refused
The local transport is responsible for delivering mails to your local mail storage. Either the transport postfix uses for that purpuse is not defined or not working. I suspect that either your pop server is not running or the configuration of your pop server does not match the configuration of postfix.
any idea? may be the master.cf local host config?
pin is giving me the following information on qpopper: ./CD2/suse/src/qpopper-4.0.5-171.src.rpm: You have to agree to the license in ./CD2/suse/src/qpopper-4.0.5-171.src.rpm: /usr/share/doc/packages/qpopper/License.txt before being allowed to use ./CD2/suse/src/qpopper-4.0.5-171.src.rpm: qpopper. ./CD2/suse/src/qpopper-4.0.5-171.src.rpm: ./CD2/suse/src/qpopper-4.0.5-171.src.rpm: After installation you have to activate the server in the file ./CD2/suse/src/qpopper-4.0.5-171.src.rpm: /etc/inetd.conf or /etc/xinetd.d/qpopper. Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com
On Thu, 2005-07-14 at 10:07 +0200, jdd sur free wrote:
Hello, I'm new on this list, so forgive me if I'm back on an already discussed thing, but I didn't find in in archives
I try to set a mail server with a suse 9.0 on a gateway.
I described my work here: http://jdanield.free.fr/wikini/wakka.php?wiki=ConfigurerPostfix but it's in french so I will summarise here.
my config is:
client<--->gateway (mecum, domain dodin.org)<--->web
I wan to store all my mails on the gateway (in fact server, gateway, firewall).
right now I have postfix and gpopper installed.
I can send mails from the client to the web from the client and from the gateway (kmail ou mail), but
* I can't send mail from a account of the gateway to an other account of the same gateway. gives me no error but mail vanishes (with "mail") or gives me an "domain not found" error with kmail (set from the gateway to the same acciunt. dns resolution by /etc/hosts) * I can neither send a mail from the client to the gateway
* I can't receive mails on the gateway from the net try jdd@dodin.org if you wan't. Mails vanishes... no error, no return, I get cc's (to my ISP server).
If you are only going to use /etc/hosts you will have internal problems because you have -no- mx host set. Perhaps this is your problem. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
Ken Schneider wrote:
If you are only going to use /etc/hosts you will have internal problems because you have -no- mx host set. Perhaps this is your problem.
I set a mx to dodin.org on my registrar account (www.gandi.net) having solved the local distribution problem, I do a step by step retry for each personal config line in main.cf. It's long because I must wait to error returns, but quite usefull. jdd -- pour m'écrire, aller sur: http://www.dodin.net http://valerie.dodin.net http://arvamip.free.fr
On Thursday, July 14, 2005 04:07 am, jdd sur free wrote:
I try to set a mail server with a suse 9.0 on a gateway.
Please post the output from running postconf -n as root and the errors from the mail log (/var/log/mail). Hard to diagnose the problem(s) otherwise. -- _________________________________________________________ A Message From... L. Mark Stone Reliable Networks of Maine, LLC "We manage your network so you can manage your business." 477 Congress Street Portland, ME 04101 Tel: (207) 772-5678 Web: http://www.rnome.com
On 7/15/05, L. Mark Stone
On Thursday, July 14, 2005 04:07 am, jdd sur free wrote:
I try to set a mail server with a suse 9.0 on a gateway.
Please post the output from running postconf -n as root and the errors from the mail log (/var/log/mail).
Hard to diagnose the problem(s) otherwise.
-- _________________________________________________________ A Message From... L. Mark Stone
Reliable Networks of Maine, LLC
"We manage your network so you can manage your business."
477 Congress Street Portland, ME 04101 Tel: (207) 772-5678 Web: http://www.rnome.com
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Hi jdd, I tried to comment out the local lines shortly to see where postfix holds the mails it cannot deliver locally, and I found out that postfix holded the mail in the /var/spool/postfix/active subdirectory ( and still it did this morning ). But, mailq allways showed me the mail ( tested it on a SuSE 9.3 and a 9.1, with the shipped postfix ). Have you built your own postfix, or are you running several instances at a time? Just an idea.. Try to use the original postfix queue list command instead, and specify the config directory. e.g. postqueue -c /etc/postfix -p Markus
Markus Natter wrote:
On 7/15/05, L. Mark Stone
wrote: On Thursday, July 14, 2005 04:07 am, jdd sur free wrote:
I try to set a mail server with a suse 9.0 on a gateway.
Please post the output from running postconf -n as root and the errors from the mail log (/var/log/mail).
Hard to diagnose the problem(s) otherwise.
-- _________________________________________________________ A Message From... L. Mark Stone
Reliable Networks of Maine, LLC
"We manage your network so you can manage your business."
477 Congress Street Portland, ME 04101 Tel: (207) 772-5678 Web: http://www.rnome.com
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Hi jdd,
I tried to comment out the local lines shortly to see where postfix holds the mails it cannot deliver locally, and I found out that postfix holded the mail in the /var/spool/postfix/active subdirectory ( and still it did this morning ).
But, mailq allways showed me the mail ( tested it on a SuSE 9.3 and a 9.1, with the shipped postfix ). Have you built your own postfix, or are you running several instances at a time? Just an idea..
Try to use the original postfix queue list command instead, and specify the config directory. e.g.
postqueue -c /etc/postfix -p
Markus
I had a similar problem on 9.2 with postfix continually queuing outbound mail. This turned out to be the hostname of my isp smtp server not having an MX record. This was fixed by adding a line to main.cf with ignore_mx_lookup_error = yes then restart postfix, this causes postfix to fall back on the hostname ip address. Regards Steve
Quoting Stephen
I had a similar problem on 9.2 with postfix continually queuing outbound mail. This turned out to be the hostname of my isp smtp server not having an MX record.
This was fixed by adding a line to main.cf with
ignore_mx_lookup_error = yes
then restart postfix, this causes postfix to fall back on the hostname ip address.
A better solution is to enclose the relay_host value in square brackets. This says to not do MX lookup on the address. E.g., relay_host = [smtp-server.isp.com] Generally, you do not want to do MX lookup on relay hosts, just the destination domains. HTH, Jeffrey
participants (8)
-
Arun Khan
-
jdd sur free
-
Jeffrey L. Taylor
-
Ken Schneider
-
L. Mark Stone
-
Markus Natter
-
Sandy Drobic
-
Stephen