[opensuse] Is it possible to send email with postfix without DNS?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I want to send email from one local computer to another one, without setting up DNS, but it fails: AmonLanc:~ # mail cer@telcontar.valinor Subject: hola texto . EOT AmonLanc:~ # 2013-08-31T19:51:04.530239+02:00 AmonLanc postfix/qmgr[2299]: 5FC09486D2: from=<root@AmonLanc.valinor>, size=432, nrcpt=1 (queue active) 2013-08-31T19:51:05.999838+02:00 AmonLanc postfix/smtp[20364]: 5FC09486D2: to=<cer@telcontar.valinor>, relay=none, delay=1.7, delays=0.34/0.06/1.3/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=telcontar.valinor type=AAAA: Host not found) The destination address is solvable to ping, but not to "host", because the later uses DNS. So far, my only solution is to implement a DNS server, but I hesitate to do it as this machine has little ram (500M). Some people claimed to make postfix work with only the /etc/hosts file, but it does not work for me. Or perhaps I misunderstood. I have in "/etc/nsswitch.conf": networks: files dns - -- Cheers Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIiL28ACgkQtTMYHG2NR9U3ZQCgimgDjzlVjsTQiOSCGI0tqmy9 TX8An0/6R1pF97zLvS9k/V/aQ4W3EwyH =fEeH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 31/08/13 14:01, Carlos E. R. escribió:
So far, my only solution is to implement a DNS server, but I hesitate to do it as this machine has little ram (500M).
dnsmasq will do just fine.. it is used with routers that have waaaay less RAM (64 MB or so) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2013-08-31 20:25, Cristian Rodríguez wrote:
El 31/08/13 14:01, Carlos E. R. escribió:
So far, my only solution is to implement a DNS server, but I hesitate to do it as this machine has little ram (500M).
dnsmasq will do just fine.. it is used with routers that have waaaay less RAM (64 MB or so)
Mmm. +++·········· Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server ··········++- It is a forwarder, not enough. It would have to accept a local definition for names. Ie, act as a real but small DNS. -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)
El 31/08/13 14:32, Carlos E. R. escribió:
It is a forwarder, not enough. It would have to accept a local definition for names. Ie, act as a real but small DNS.
You say that because you have not read the documentation, please kindly RTFM ;-P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2013-08-31 20:34, Cristian Rodríguez wrote:
El 31/08/13 14:32, Carlos E. R. escribió:
It is a forwarder, not enough. It would have to accept a local definition for names. Ie, act as a real but small DNS.
You say that because you have not read the documentation, please kindly RTFM ;-P
Ok, ok, I'll have a better look :-) -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)
Carlos E. R. wrote:
dnsmasq will do just fine.. it is used with routers that have waaaay
less RAM (64 MB or so) Mmm.
+++·········· Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server ··········++-
It is a forwarder, not enough. It would have to accept a local definition for names. Ie, act as a real but small DNS.
I use dnsmasq here and it works fine for both IPv4 & IPv6 addresses. You just have to add local hosts into the /etc/hosts file and then restart dnsmasq. If you're using IPv6 and IPv4, you'll want to have the IPv6 address listed first. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2013-08-31 21:59, James Knott wrote:
Carlos E. R. wrote:
dnsmasq will do just fine.. it is used with routers that have waaaay
less RAM (64 MB or so) Mmm.
+++·········· Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server ··········++-
It is a forwarder, not enough. It would have to accept a local definition for names. Ie, act as a real but small DNS.
I use dnsmasq here and it works fine for both IPv4 & IPv6 addresses. You just have to add local hosts into the /etc/hosts file and then restart dnsmasq. If you're using IPv6 and IPv4, you'll want to have the IPv6 address listed first.
Interestingly, it was already installed. You mean this thing reads the hosts file and that's it? Wow, it works... AmonLanc:~ # host telcontar telcontar.valinor has address 192.168.1.14 Host telcontar.valinor not found: 5(REFUSED) Host telcontar.valinor not found: 5(REFUSED) AmonLanc:~ # huh? AmonLanc:~ # host -v telcontar Trying "telcontar.valinor" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26366 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;telcontar.valinor. IN A ;; ANSWER SECTION: telcontar.valinor. 0 IN A 192.168.1.14 Received 51 bytes from 192.168.1.15#53 in 1 ms Trying "telcontar.valinor" Host telcontar.valinor not found: 5(REFUSED) Received 35 bytes from 192.168.1.15#53 in 0 ms Trying "telcontar.valinor" Host telcontar.valinor not found: 5(REFUSED) Received 35 bytes from 192.168.1.15#53 in 0 ms AmonLanc:~ # Ah, port 53 is not open on that machine. Not important. Ok, lets try email... interesting failure: 2013-08-31T22:37:10.248374+02:00 AmonLanc postfix/smtp[23220]: 06E38486E0: to=<cer@telcontar.valinor>, relay=none, delay=0.39, delays=0.34/0.05/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=telcontar.valinor type=MX: Host not found, try again) So I have to find out how to configure dnsmasq to give an answer for 'MX'. There is another problem - internet name solving fails: p2phelper@AmonLanc:~> host google.es Host google.es.valinor not found: 5(REFUSED) p2phelper@AmonLanc:~> p2phelper@AmonLanc:~> host -v google.es Trying "google.es" Received 27 bytes from " in 0 ms Trying "google.es.valinor" Host google.es.valinor not found: 5(REFUSED) Received 35 bytes from 192.168.1.15#53 in 0 ms p2phelper@AmonLanc:~> Why is it asking for "google.es.valinor"? Why is it asking "192.168.1.15#53"? It should ask the router. But I do not see how to tell it to ask the router, I do not see a forwarder section in "/etc/dnsmasq.conf". It works if I disable dnsmasq. (reading) -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2013-08-31 at 22:53 +0200, Carlos E. R. wrote:
(reading)
dnsmasq has a funny config. /etc/resolv.conf: search valinor #nameserver 192.168.1.1 nameserver 127.0.0.1 /etc/dnsmasq.conf: server=192.168.1.1 name solving works, and mail works too :-) - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIiZRMACgkQtTMYHG2NR9UH9wCfUPB47BqDhZwN7dLzEODsi7Oe 8O0Ani/XlLboOA6LRrBoeJFhgkC3Mee9 =YFnB -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Carlos E. R. wrote:
/etc/resolv.conf:
search valinor #nameserver 192.168.1.1 nameserver 127.0.0.1
I use the external DNS servers here. I have 3 of them, 2 IPv6 and 1 IPv4.
/etc/dnsmasq.conf:
server=192.168.1.1
On my system, that line is commented out.
name solving works, and mail works too :-)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iF4EAREIAAYFAlIicAoACgkQAtgmQnSY2k3VLQEA4RjlJ7TuQM5+xhMb+ijzmYht na5ugO3mQNsFuWt/nZQBAIS6+Rm1EIOVR7ODhFCaVKtFC8rqIhu7jENgLxscl7+j =H/sy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2013-08-31 at 18:36 -0400, James Knott wrote:
Carlos E. R. wrote:
/etc/resolv.conf:
search valinor #nameserver 192.168.1.1 nameserver 127.0.0.1
I use the external DNS servers here. I have 3 of them, 2 IPv6 and 1 IPv4.
/etc/dnsmasq.conf:
server=192.168.1.1
On my system, that line is commented out.
The documentation says that the way you say it works for other machines asking this machine for names. But if you want the machine running dnsmasq to also query its own dnsmasq, it says that you point nameserver to itself in resolv.conf, and to an external place in dnsmasq.conf. If you don't do the second part, you get a loop and no external resolution, which is the problem I had two posts ago. So, if in resolv.conf you have several external DNS, and in dnsmasq.conf the "server=" is commented out, then that machine sends all queries to outside, not asking its own dnsmasq. Your local network machines instead can ask that machine dnsmasq. I don't know if I'm explaining myself... :-? - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIimO4ACgkQtTMYHG2NR9XAIgCdFchIvWiy1QtSyOW9TfjV4NdK rMkAn3nc/0tcUgz05eNIdGyhJxvcoIfW =3EDe -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
[01.09.2013 03:31] [Carlos E. R.]:
On Saturday, 2013-08-31 at 18:36 -0400, James Knott wrote:
Carlos E. R. wrote:
/etc/resolv.conf:
search valinor #nameserver 192.168.1.1 nameserver 127.0.0.1
I use the external DNS servers here. I have 3 of them, 2 IPv6 and 1 IPv4.
/etc/dnsmasq.conf:
server=192.168.1.1
On my system, that line is commented out.
The documentation says that the way you say it works for other machines asking this machine for names.
But if you want the machine running dnsmasq to also query its own dnsmasq, it says that you point nameserver to itself in resolv.conf, and to an external place in dnsmasq.conf.
If you don't do the second part, you get a loop and no external resolution, which is the problem I had two posts ago.
So, if in resolv.conf you have several external DNS, and in dnsmasq.conf the "server=" is commented out, then that machine sends all queries to outside, not asking its own dnsmasq. Your local network machines instead can ask that machine dnsmasq.
That is the way it is run on my 20+ SAP systems at the office. resolv.conf may point to 1-3 nameservers, and so I configured 127.0.0.1 first, followed by two company name servers as failover when the local dnsmasq is not reachable. But only the local DNSmasq knows all about internally used hostnames in the SAP landscape, which often differ from the "official" ones. In dnsmasq.conf, I define all company name servers on one server= line each, and I tell dnsmasq "no-resolv", because that would be a recursion ;-) BTW, I also use "no-negcache", because sometimes the main internal DNS cluster has a hiccup... In case of mail, this may result in a deferred mail, mails warning you that the mail is deferred (being deferred themselves), and so on - from one mail sent you get 5 mails delivered at least ;-) Regards, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
So, if in resolv.conf you have several external DNS, and in dnsmasq.conf the "server=" is commented out, then that machine sends all queries to outside, not asking its own dnsmasq. Your local network machines instead can ask that machine dnsmasq.
I run dnsmasq on my firewall, which is also my IPv6 tunnel end point. My main reason for running it is to provide DNS for my local network addresses. I just enter them in the firewall hosts file. As for the 3 DNS servers, that's for redundancy. If one fails I have two more to fall back on. The first two are via IPv6 and the 3rd, IPv4. That IPv4 one is necessary, because until my IPv6 tunnel is up, the first two are not available. I'm not worried about caching requests from the firewall, as I rarely run anything other than ping and traceroute from it. To summarize, dnsmasq provides a local DNS for both IPv6 and IPv4. It also provides the benefit of redundant external servers to all clients. I only have to change one hosts file, when I make changes on my local network. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Carlos E. R. wrote:
It works if I disable dnsmasq.
(reading)
I certainly had no problem with it on my system. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iF4EAREIAAYFAlIibtYACgkQAtgmQnSY2k1D6QEAyo/mEayiHLBkZnZp9WWboXQz KtyI3OGbJavUxqc4f6UA/1fQU7WAH6UyWEg7KymKQTWAwDQv2xk/hKqK7vABZ8wY =mT7Y -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez said the following on 08/31/2013 02:25 PM:
El 31/08/13 14:01, Carlos E. R. escribió:
So far, my only solution is to implement a DNS server, but I hesitate to do it as this machine has little ram (500M).
dnsmasq will do just fine.. it is used with routers that have waaaay less RAM (64 MB or so)
Ditto. I've run IPCop in that -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. said the following on 08/31/2013 02:01 PM:
I want to send email from one local computer to another one, without setting up DNS, but it fails:
It is likely to depend on how yo have, say, postfix set up, rather than how you have other things set up. Look at 'relayhost' in the Postfix config. As for the DNS server ... In the Microsoft world yes you would have a small machine as a DNS server, and another as a DHCP server and another ... All of which is why, since so many of these things need only a very low powered machine or might consume a very small percentage ff the power of a 4-negations back desktop (such as the ones I pull out of the Closet of Anxieties), stacking virtual Microsoft machines as virtual instances on a modern machine makes sense. But in the *NIX world it doesn't. Right now my DNS server is also my email server (postfix), runs fetchmail, spamassassin and dovecot as well as is the NFS /home and ~/ebooks and ~/Downloads and ~/Documents and ~/Media and ~/Development for when I connect via laptop or a remote workstation. Its a 800MHz single core ex-desktop from almost a decade ago with 1G of memory. That's right now, but it has run on half that with no problems. I connect via ssh or via a VNC link. I've never seen the load average go over 1.0 except for booting subsystems all at the same time. Most of the time its under 0.3. Right now it under 0.05 I'm sure Postfix can be made to work with only ITS OWN /etc/hosts file, but you will have to configure postfix for that. Personally I use the [relayhost] configuration setting when I route outgoing via Postfix and have my ISP do the hard work. -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Probably not. Postfix doesn't like cer@192.168.1.101, an IP address instead of a domain name. Maybe someone else can come up with a hack around the restriction. Jeffrey Quoting Carlos E. R. <robin.listas@telefonica.net>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I want to send email from one local computer to another one, without setting up DNS, but it fails:
AmonLanc:~ # mail cer@telcontar.valinor Subject: hola texto . EOT AmonLanc:~ #
2013-08-31T19:51:04.530239+02:00 AmonLanc postfix/qmgr[2299]: 5FC09486D2: from=<root@AmonLanc.valinor>, size=432, nrcpt=1 (queue active) 2013-08-31T19:51:05.999838+02:00 AmonLanc postfix/smtp[20364]: 5FC09486D2: to=<cer@telcontar.valinor>, relay=none, delay=1.7, delays=0.34/0.06/1.3/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=telcontar.valinor type=AAAA: Host not found)
The destination address is solvable to ping, but not to "host", because the later uses DNS.
So far, my only solution is to implement a DNS server, but I hesitate to do it as this machine has little ram (500M). Some people claimed to make postfix work with only the /etc/hosts file, but it does not work for me. Or perhaps I misunderstood.
I have in "/etc/nsswitch.conf":
networks: files dns
- -- Cheers
Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux)
iEYEARECAAYFAlIiL28ACgkQtTMYHG2NR9U3ZQCgimgDjzlVjsTQiOSCGI0tqmy9 TX8An0/6R1pF97zLvS9k/V/aQ4W3EwyH =fEeH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Jeffrey L. Taylor said the following on 08/31/2013 02:35 PM:
Probably not. Postfix doesn't like cer@192.168.1.101, an IP address instead of a domain name. Maybe someone else can come up with a hack around the restriction.
Please read the manuals & documentation. Postfix uses a number of auxiliary files as to what transports to use for what addresses and domains. An address isn't a problem so long as you tell Postfix that. Start with 'Canonical' so you understand the formats, then 'Transport', which is probably the simplest way to address the above. Guessing... @192.168.1.101 smtp:[192.168.2.101]:587 Or maybe "25" instead of "587" :-) It all depends on the configuration :-) -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Quoting Anton Aylward <opensuse@antonaylward.com>:
Jeffrey L. Taylor said the following on 08/31/2013 02:35 PM:
Probably not. Postfix doesn't like cer@192.168.1.101, an IP address instead of a domain name. Maybe someone else can come up with a hack around the restriction.
Please read the manuals & documentation. Postfix uses a number of auxiliary files as to what transports to use for what addresses and domains. An address isn't a problem so long as you tell Postfix that.
Start with 'Canonical' so you understand the formats, then 'Transport', which is probably the simplest way to address the above.
Guessing...
@192.168.1.101 smtp:[192.168.2.101]:587
Or maybe "25" instead of "587" :-) It all depends on the configuration :-)
Really, as a recipient address? Every place I find an example recipient address given in the Postfix.org documentation, it is given as 'user@domain'. Please give a URL for documentation showing a recipient address (not in a configuration file) with an IP address. TIA, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
[01.09.2013 01:29] [Jeffrey L. Taylor]:
Quoting Anton Aylward <opensuse@antonaylward.com>:
Jeffrey L. Taylor said the following on 08/31/2013 02:35 PM:
Probably not. Postfix doesn't like cer@192.168.1.101, an IP address instead of a domain name. Maybe someone else can come up with a hack around the restriction.
Please read the manuals & documentation. Postfix uses a number of auxiliary files as to what transports to use for what addresses and domains. An address isn't a problem so long as you tell Postfix that.
Start with 'Canonical' so you understand the formats, then 'Transport', which is probably the simplest way to address the above.
Guessing...
@192.168.1.101 smtp:[192.168.2.101]:587
Or maybe "25" instead of "587" :-) It all depends on the configuration :-)
Really, as a recipient address? Every place I find an example recipient address given in the Postfix.org documentation, it is given as 'user@domain'. Please give a URL for documentation showing a recipient address (not in a configuration file) with an IP address.
I never found postix accepting user@ip.ad.dr.e.ss. Instead, one can use something like user@dont.know and define a transport like @dont.know smtp:[192.168.2.101] Regards, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Sun, 01 Sep 2013, Werner Flamme wrote:
I never found postix accepting user@ip.ad.dr.e.ss. Instead, one can use something like user@dont.know and define a transport like @dont.know smtp:[192.168.2.101]
Addresses of the form local-part@[IP_ADDR] are valid. See http://tools.ietf.org/html/rfc5322#section-3.4.1 ==== addr-spec = local-part "@" domain local-part = dot-atom / quoted-string / obs-local-part domain = dot-atom / domain-literal / obs-domain domain-literal = [CFWS] "[" *([FWS] dtext) [FWS] "]" [CFWS] [..] In the domain- literal form, the domain is interpreted as the literal Internet address of the particular host. ==== See also: http://en.wikipedia.org/wiki/Email_address#Domain_part HTH, -dnh -- "I can't go on meeting you like this" -- a TeX message -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Werner Flamme said the following on 09/01/2013 03:58 AM:
I never found postix accepting user@ip.ad.dr.e.ss. Instead, one can use something like user@dont.know and define a transport like @dont.know smtp:[192.168.2.101]
That's ingenious! To be honest, I'm not sure the issue is with postfix, per se. I've just tried a few MUAs and they all reject "user@ip.add.re.ss" with a "bad address syntax" message. I suppose you could go into the message buffers of postfix and hand edit a valid address into an IP one. Perhaps, given a MUA that will accept that syntax and hand it to Postfix, we can set up a debug g trace to see how it handles or fails with it under various configs. But I can't say its a high priority matter given Werner's idea. -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-09-01 at 08:39 -0400, Anton Aylward wrote:
Werner Flamme said the following on 09/01/2013 03:58 AM:
I never found postix accepting user@ip.ad.dr.e.ss. Instead, one can use something like user@dont.know and define a transport like @dont.know smtp:[192.168.2.101]
That's ingenious!
Yep, I saved that post for future reference.
To be honest, I'm not sure the issue is with postfix, per se. I've just tried a few MUAs and they all reject "user@ip.add.re.ss" with a "bad address syntax" message. I suppose you could go into the message buffers of postfix and hand edit a valid address into an IP one.
mailx (CLI) accepts it. It was one of the things I tried before posting here. Postfix refused, I don't remember why, but can find out in the logs if you are interested.
Perhaps, given a MUA that will accept that syntax and hand it to Postfix, we can set up a debug g trace to see how it handles or fails with it under various configs.
But I can't say its a high priority matter given Werner's idea.
After seeing how easy was to setup dnsmasq, I have no more interest in using postfix without dns ;-) I wanted to, previously, because setting up bind is such a hassle... and because the machine is very low on ram. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIjP/YACgkQtTMYHG2NR9XZMgCgjrbIf3YRo7GvdTABt6gF8TeH 6kAAnAqJBso2dDfqqvKwbWTl/48jo7+Z =ckXI -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. said the following on 09/01/2013 09:24 AM:
I wanted to, previously, because setting up bind is such a hassle... and because the machine is very low on ram.
ROTFLMAO! The machine from the Closet of Anxieties under my desk, the single core 800MHz job that supports, as I said, Bind/DNS, DHCP, fetchmail, VNC server and xfce, SSHD, Postfix, Dovecot and NFS, is now running with just 500M[1]. I saw the load average go up to this morning while running fetchmail though spamassassin, 16 NFS mounts active, mail flowing out. It actually reached 0.9. This machine is running Mageia with a 3.4.52 kernel. Perhaps its that Mageia is dramatically more efficient than openSuse :-) :-) :-) So I think you underestimate the capabilities. Either that or you are basing your estimates on one of a) how MS-Windows performs in similar situations b) how a Linux machine that is overloaded running X performs Having encountered (b) I can sympathise. Bus the kind of server I'm talking about is headless and doesn't need X. Heck, this one doesn't need VNC :-) [1] The other 500M is in another CoA machine I'm commissioning -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-09-01 at 09:47 -0400, Anton Aylward wrote:
Carlos E. R. said the following on 09/01/2013 09:24 AM:
I wanted to, previously, because setting up bind is such a hassle... and because the machine is very low on ram.
ROTFLMAO!
The machine from the Closet of Anxieties under my desk, the single core 800MHz job that supports, as I said, Bind/DNS, DHCP, fetchmail, VNC server and xfce, SSHD, Postfix, Dovecot and NFS, is now running with just 500M[1]. I saw the load average go up to this morning while running fetchmail though spamassassin, 16 NFS mounts active, mail flowing out. It actually reached 0.9.
named: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9596 named 20 0 386m 23m 1448 S 0.0 0.3 0:27.43 named dnsmasq: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2196 dnsmasq 20 0 3864 1456 1132 S 0,0 0,3 0:00.01 dnsmasq That's the proof. And yes, I have run named in a 32 MB machine, I know it works. The other reason you forget, is that bind is a hasle to setup and configure. I have done it, and I don't want to do it unless I really need it. And no, name service in Windows is even more complex. I do not use it unless they pay me. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIjUBoACgkQtTMYHG2NR9V+VgCeJMtZ1KIGc6vv/8lqFASicrED nGoAn1awviFqbi0q2LUcgrCuOwB9fkjx =ABWF -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. said the following on 09/01/2013 10:32 AM:
The other reason you forget, is that bind is a hasle to setup and configure. I have done it, and I don't want to do it unless I really need it.
Perhaps it a matter of the tools you use. Many years ago I got Cricket Liu's book. It has many scripts and there are many more out there. There are GUI tools to take care of it. Once I had it set up making small adjustments such as adding new hosts was trivial .... copy, paste, change last digit. Of course the DHCP server does updates too but I don't have to worry about those :-) Now it would be more effort to wipe and it and replace it than to continue using it and occasional ... as in once every few years ... adding a hard coded addition. -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-09-01 at 11:22 -0400, Anton Aylward wrote:
Carlos E. R. said the following on 09/01/2013 10:32 AM:
The other reason you forget, is that bind is a hasle to setup and configure. I have done it, and I don't want to do it unless I really need it.
Perhaps it a matter of the tools you use. Many years ago I got Cricket Liu's book. It has many scripts and there are many more out there. There are GUI tools to take care of it.
Once I had it set up making small adjustments such as adding new hosts was trivial .... copy, paste, change last digit.
I also used scripts to create mine. I could simply copy my files over, and trim. But it happens that dnsmasq doesn't need any configuration at all! It just reads the existing /etc/hosts file and produces its own things, in ram probably.
Of course the DHCP server does updates too but I don't have to worry about those :-)
Now it would be more effort to wipe and it and replace it than to continue using it and occasional ... as in once every few years ... adding a hard coded addition.
My main desktop computer uses bind. But I did not want to do the same on this laptop. Believe me, dnsmasq is easier. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIjd5AACgkQtTMYHG2NR9X/GwCfYU/nSjhX2bwrYbfZJIx/0GK4 WoMAn24BXynWyHc9ZRLY2xGNtgNgycP4 =F3S7 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. said the following on 09/01/2013 01:21 PM:
On Sunday, 2013-09-01 at 11:22 -0400, Anton Aylward wrote:
Carlos E. R. said the following on 09/01/2013 10:32 AM:
The other reason you forget, is that bind is a hasle to setup and configure. I have done it, and I don't want to do it unless I really need it.
Perhaps it a matter of the tools you use. Many years ago I got Cricket Liu's book. It has many scripts and there are many more out there. There are GUI tools to take care of it.
Once I had it set up making small adjustments such as adding new hosts was trivial .... copy, paste, change last digit.
I also used scripts to create mine. I could simply copy my files over, and trim. But it happens that dnsmasq doesn't need any configuration at all! It just reads the existing /etc/hosts file and produces its own things, in ram probably.
Of course the DHCP server does updates too but I don't have to worry about those :-)
Now it would be more effort to wipe and it and replace it than to continue using it and occasional ... as in once every few years ... adding a hard coded addition.
My main desktop computer uses bind. But I did not want to do the same on this laptop. Believe me, dnsmasq is easier.
Its that laptop which does it. Oh and a loaded /etc/hosts file. But given a loaded /etc/hosts file the scripts produce a Bind file... So really its down to dnsmasq being lighter, since the laptop isn't going to be doing other things like handing out DHCP. I don't need to duplicate. Default boot on my laptop is DHCP and the DHCP server here hands out DNS server addresses among other things. -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Anton Aylward wrote:
So really its down to dnsmasq being lighter, since the laptop isn't going to be doing other things like handing out DHCP.
Yeah, you'd want it to be lighter, if you're going to be carrying that laptop around. ;-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Quoting Anton Aylward <opensuse@antonaylward.com>:
Carlos E. R. said the following on 09/01/2013 09:24 AM:
I wanted to, previously, because setting up bind is such a hassle... and because the machine is very low on ram.
ROTFLMAO!
The machine from the Closet of Anxieties under my desk, the single core 800MHz job that supports, as I said, Bind/DNS, DHCP, fetchmail, VNC server and xfce, SSHD, Postfix, Dovecot and NFS, is now running with just 500M[1]. I saw the load average go up to this morning while running fetchmail though spamassassin, 16 NFS mounts active, mail flowing out. It actually reached 0.9.
This machine is running Mageia with a 3.4.52 kernel. Perhaps its that Mageia is dramatically more efficient than openSuse :-) :-) :-)
So I think you underestimate the capabilities. Either that or you are basing your estimates on one of a) how MS-Windows performs in similar situations b) how a Linux machine that is overloaded running X performs
Having encountered (b) I can sympathise. Bus the kind of server I'm talking about is headless and doesn't need X. Heck, this one doesn't need VNC :-)
Postfix (w/o Spamassassin) runs comfortably on a 150MHz Pentium equivalent w/ 64MB of RAM. X usable, but the video card labored - flicker at any kind of refresh rate. Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Quoting Carlos E. R. <robin.listas@telefonica.net>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sunday, 2013-09-01 at 08:39 -0400, Anton Aylward wrote:
Werner Flamme said the following on 09/01/2013 03:58 AM:
I never found postix accepting user@ip.ad.dr.e.ss. Instead, one can use something like user@dont.know and define a transport like @dont.know smtp:[192.168.2.101]
That's ingenious!
Yep, I saved that post for future reference.
To be honest, I'm not sure the issue is with postfix, per se. I've just tried a few MUAs and they all reject "user@ip.add.re.ss" with a "bad address syntax" message. I suppose you could go into the message buffers of postfix and hand edit a valid address into an IP one.
mailx (CLI) accepts it. It was one of the things I tried before posting here. Postfix refused, I don't remember why, but can find out in the logs if you are interested.
Perhaps, given a MUA that will accept that syntax and hand it to Postfix, we can set up a debug g trace to see how it handles or fails with it under various configs.
But I can't say its a high priority matter given Werner's idea.
After seeing how easy was to setup dnsmasq, I have no more interest in using postfix without dns ;-)
I wanted to, previously, because setting up bind is such a hassle... and because the machine is very low on ram.
Mutt and Postfix accept domain literals. The MTA at my mail handler will not. Setting up a local DNS that is authorative for the local network is a better solution. I spent a lot of time ten years ago trying to do it some other way. Plus the local DNS solution works for SSH, etc. as well as e-mail. Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Quoting Werner Flamme <werner.flamme@email.de>:
[01.09.2013 01:29] [Jeffrey L. Taylor]:
Quoting Anton Aylward <opensuse@antonaylward.com>:
Jeffrey L. Taylor said the following on 08/31/2013 02:35 PM:
Probably not. Postfix doesn't like cer@192.168.1.101, an IP address instead of a domain name. Maybe someone else can come up with a hack around the restriction.
Please read the manuals & documentation. Postfix uses a number of auxiliary files as to what transports to use for what addresses and domains. An address isn't a problem so long as you tell Postfix that.
Start with 'Canonical' so you understand the formats, then 'Transport', which is probably the simplest way to address the above.
Guessing...
@192.168.1.101 smtp:[192.168.2.101]:587
Or maybe "25" instead of "587" :-) It all depends on the configuration :-)
Really, as a recipient address? Every place I find an example recipient address given in the Postfix.org documentation, it is given as 'user@domain'. Please give a URL for documentation showing a recipient address (not in a configuration file) with an IP address.
I never found postix accepting user@ip.ad.dr.e.ss. Instead, one can use something like user@dont.know and define a transport like @dont.know smtp:[192.168.2.101]
Thank you, I understand this. It's specific enough and I've done something similar to this in the past. Endless calls to RTFM (I have) with vague handwaving to which part of TFM to read are not helpful. This helps with e-mail, though the other threads about setting up a local DNS server are a more general solution. Thank you, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Anton Aylward
-
Carlos E. R.
-
Cristian Rodríguez
-
David Haller
-
James Knott
-
Jeffrey L. Taylor
-
Werner Flamme