[opensuse] can anyone help to configure a fully-qualified hostname in sendmail?
Does anyone know how can i configure the sendmail like a fully-qualified hostname This is an example of the error: ----------------------------------------------------------------------------- The following addresses had permanent fatal errors ----- account@domain.com (reason: 550 <www>: Helo command rejected: need fully-qualified hostname) ----- Transcript of session follows ----- ... while talking to mx.kpnqwest.it.:
DATA
<<< 550 <www>: Helo command rejected: need fully-qualified hostname 550 5.1.1 <account@domain.com>... ---------------------------------------------------------------------------------- questions: the part of the message ""(reason: 550 <www>: "" is from my sendmail? how can i configure the sendmail like a fully-qualified hostname thanks in advance PiPiRiZ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
You said Sendmail, but SuSe uses Postfix (at least on my machine using 10.1). A really nice graphical interface for configuring most things is Webmin : http://www.webmin.com/index.html Mike pipiriz wrote:
Does anyone know how can i configure the sendmail like a fully-qualified hostname
This is an example of the error: -----------------------------------------------------------------------------
The following addresses had permanent fatal errors ----- account@domain.com
(reason: 550 <www>: Helo command rejected: need fully-qualified hostname)
----- Transcript of session follows ----- ... while talking to mx.kpnqwest.it.:
DATA
<<< 550 <www>: Helo command rejected: need fully-qualified hostname 550 5.1.1 <account@domain.com>...
----------------------------------------------------------------------------------
questions:
the part of the message ""(reason: 550 <www>: "" is from my sendmail?
how can i configure the sendmail like a fully-qualified hostname
thanks in advance
PiPiRiZ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John Andersen wrote:
On Saturday 25 November 2006 11:50, Mike Noble wrote:
You said Sendmail, but SuSe uses Postfix (at least on my machine using 10.1).
Both are supported.
I realize that both are supported, but Postfix is installed by default. Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-11-25 at 13:55 -0800, Mike Noble wrote:
I realize that both are supported, but Postfix is installed by default.
We can change the default, and the OP has a problem with sendmail. Even if postfix is easier, that does not help him. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFaNfJtTMYHG2NR9URAsIrAJ42NfRZHDXdJ0getNvse/1lOUJotwCfQusG 2GYbY/V/ElAxCDO/mqrcV/s= =YWi+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2006-11-25 at 13:55 -0800, Mike Noble wrote:
I realize that both are supported, but Postfix is installed by default.
We can change the default, and the OP has a problem with sendmail. Even if postfix is easier, that does not help him.
I always advocate Postfix as the better alternative, but Carlos is right. This isn't helping the OP. Perhaps the OP should try to use the MTA configuration module in yast. Sorry, can't give any specific help for sendmail, though I found this URL: http://docs.hp.com/en/5991-7401/ch03s07.html#sendmail-sect Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sandy Drobic wrote:
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2006-11-25 at 13:55 -0800, Mike Noble wrote:
I realize that both are supported, but Postfix is installed by default.
We can change the default, and the OP has a problem with sendmail. Even if postfix is easier, that does not help him.
I always advocate Postfix as the better alternative, but Carlos is right. This isn't helping the OP.
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused. I did send the OP a direct reply (forgot reply to was not set to list) telling him make changes to sendmail. I now think it is time to drop this part as it is not helping anybody. Mike
Perhaps the OP should try to use the MTA configuration module in yast. Sorry, can't give any specific help for sendmail, though I found this URL: http://docs.hp.com/en/5991-7401/ch03s07.html#sendmail-sect
Sandy
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-11-25 at 17:37 -0800, Mike Noble wrote:
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused. I did send the OP a direct reply (forgot reply to was not set to list) telling him make changes to sendmail.
Could you post those changes here, just for the record? Even if I don't use sendmail now, I like to learn. :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFaPhNtTMYHG2NR9URApHTAJ42u4sDd1ZgDunRWVbYs2vjBD2HEwCfWTYl HbsHFrPF7m+Oaq21v7zZQ3I= =ZHi1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
The Saturday 2006-11-25 at 17:37 -0800, Mike Noble wrote:
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused. I did send the OP a direct reply (forgot reply to was not set to list) telling him make changes to sendmail.
Could you post those changes here, just for the record? Even if I don't use sendmail now, I like to learn. :-)
One of the best places to information about sendmail is to go to: http://sendmail.org/ To setup DNS for private address space, you can find at: http://sendmail.org/tips/private-dns/ Of course private address space was never mentioned, I'm just assuming that he does not have valid IP and that all internal IP addresses are being NAT'd to a valid IP address on the internet. Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike Noble wrote:
Carlos E. R. wrote:
The Saturday 2006-11-25 at 17:37 -0800, Mike Noble wrote:
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused. I did send the OP a direct reply (forgot reply to was not set to list) telling him make changes to sendmail. Could you post those changes here, just for the record? Even if I don't use sendmail now, I like to learn. :-)
One of the best places to information about sendmail is to go to: http://sendmail.org/
I was also hoping for a bit more specific advice. For Postfix the procedure would be: servername: www domain: example.com as root: postconf -e "myhostname = www.example.com" postfix reload If you've got some strange setup where you don't want to use the hostname as HELO, you can set the helo name of the server with: postconf -e "smtp_helo_name = mail.example.com" postfix reload The default of smtp_helo_name is $myhostname: # postconf -d smtp_helo_name smtp_helo_name = $myhostname So usually it's not neccessary. I tried to find the information on the sendmail.org site, but didn't find anything useful within a few minutes. Do you have a more specific link for basic Sendmail setup including hostname?
To setup DNS for private address space, you can find at: http://sendmail.org/tips/private-dns/
Of course private address space was never mentioned, I'm just assuming that he does not have valid IP and that all internal IP addresses are being NAT'd to a valid IP address on the internet.
Judging from the hostname "www" that he used he is probably trying to send mail from a webserver using the local Sendmail installation. So he probably has an official IP (and hopefully correctly set up dns and reverse dns). Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-11-26 at 11:15 +0100, Sandy Drobic wrote:
Judging from the hostname "www" that he used he is probably trying to send mail from a webserver using the local Sendmail installation. So he probably has an official IP (and hopefully correctly set up dns and reverse dns).
Yes, that's right. We told him (in the Spanish list) to check using <http://www.dnsreport.com/tools/dnsreport.ch?domain=tudominio.es>. He had a problem with the reverse dns and said later that had spoken with his ISP and solved that. So that side should be correct. Another time he mentioned being able to receive emails, so that means he does have an MX register. Pity reliable crystal balls are so expensive nowdays ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFaYDhtTMYHG2NR9URAp5kAJ9lYF41JIzMw3eylqiNT+XhNyF5IQCdF1+b JBBS2fDRxl1Gkm6V5NX0z/w= =o2/A -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Sunday 2006-11-26 at 11:15 +0100, Sandy Drobic wrote:
Judging from the hostname "www" that he used he is probably trying to send mail from a webserver using the local Sendmail installation. So he probably has an official IP (and hopefully correctly set up dns and reverse dns).
Yes, that's right. We told him (in the Spanish list) to check using <http://www.dnsreport.com/tools/dnsreport.ch?domain=tudominio.es>. He had a problem with the reverse dns and said later that had spoken with his ISP and solved that. So that side should be correct. Another time he mentioned being able to receive emails, so that means he does have an MX register.
Pity reliable crystal balls are so expensive nowdays ;-)
- -- Cheers, Carlos E. R.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76
iD8DBQFFaYDhtTMYHG2NR9URAp5kAJ9lYF41JIzMw3eylqiNT+XhNyF5IQCdF1+b JBBS2fDRxl1Gkm6V5NX0z/w= =o2/A -----END PGP SIGNATURE-----
I wish he would have posted his solution. That would be good to know. John -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
hi, John, this is the solution: i found the answer to my problem in the configuration file sendmail.cf
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain #Dj$w.Foo.COMUncomment the macro and include the fully qualified host name.
The entry is similar to this for penguin.southpole.com:
i use:
Djwww.mydomain.com
restart the sendmail and that´s all.
this solved the problem.
thanks to all
hanks to the list
btw
Pipiriz ----- Original Message ----- From: "John" <penguin_powered@cmaaccess.com> To: "Carlos E. R." <robin.listas@telefonica.net> Cc: "OpenSuSE-en" <opensuse@opensuse.org> Sent: Tuesday, November 28, 2006 4:05 PM Subject: Re: [opensuse] can anyone help to configure a fully-qualified hostname in sendmail?
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Sunday 2006-11-26 at 11:15 +0100, Sandy Drobic wrote:
Judging from the hostname "www" that he used he is probably trying to send mail from a webserver using the local Sendmail installation. So he probably has an official IP (and hopefully correctly set up dns and reverse dns).
Yes, that's right. We told him (in the Spanish list) to check using <http://www.dnsreport.com/tools/dnsreport.ch?domain=tudominio.es>. He had a problem with the reverse dns and said later that had spoken with his ISP and solved that. So that side should be correct. Another time he mentioned being able to receive emails, so that means he does have an MX register.
Pity reliable crystal balls are so expensive nowdays ;-)
- -- Cheers, Carlos E. R.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76
iD8DBQFFaYDhtTMYHG2NR9URAp5kAJ9lYF41JIzMw3eylqiNT+XhNyF5IQCdF1+b JBBS2fDRxl1Gkm6V5NX0z/w= =o2/A -----END PGP SIGNATURE-----
I wish he would have posted his solution. That would be good to know.
John
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-11-28 at 16:05 -0600, John wrote:
I wish he would have posted his solution. That would be good to know.
He did, you have to look carefully at the thread. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFbMZ7tTMYHG2NR9URAuWbAJ9gTKtaYv99/vMAODcsUsDScu4M1ACfdgWO GbZBLUifHoejPAxMOdtQgvs= =r3np -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Since I don't use any mailer at home, I have removed postfix and have installed sendmail. This will allow me to see how suse uses sendmail (or modified from original), will also set it up to use my ISP smtp server as a smart host. Nobody will be able tell you what you need to do as each site is different. But at least I will have a better idea of what you need to do. Mike Sandy Drobic wrote:
Mike Noble wrote:
Carlos E. R. wrote:
The Saturday 2006-11-25 at 17:37 -0800, Mike Noble wrote:
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused. I did send the OP a direct reply (forgot reply to was not set to list) telling him make changes to sendmail. Could you post those changes here, just for the record? Even if I don't use sendmail now, I like to learn. :-)
One of the best places to information about sendmail is to go to: http://sendmail.org/
I was also hoping for a bit more specific advice. For Postfix the procedure would be:
servername: www domain: example.com
as root: postconf -e "myhostname = www.example.com" postfix reload
If you've got some strange setup where you don't want to use the hostname as HELO, you can set the helo name of the server with:
postconf -e "smtp_helo_name = mail.example.com" postfix reload
The default of smtp_helo_name is $myhostname: # postconf -d smtp_helo_name smtp_helo_name = $myhostname
So usually it's not neccessary.
I tried to find the information on the sendmail.org site, but didn't find anything useful within a few minutes. Do you have a more specific link for basic Sendmail setup including hostname?
To setup DNS for private address space, you can find at: http://sendmail.org/tips/private-dns/
Of course private address space was never mentioned, I'm just assuming that he does not have valid IP and that all internal IP addresses are being NAT'd to a valid IP address on the internet.
Judging from the hostname "www" that he used he is probably trying to send mail from a webserver using the local Sendmail installation. So he probably has an official IP (and hopefully correctly set up dns and reverse dns).
Sandy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike Noble wrote:
Since I don't use any mailer at home, I have removed postfix and have installed sendmail. This will allow me to see how suse uses sendmail (or modified from original), will also set it up to use my ISP smtp server as a smart host. Nobody will be able tell you what you need to do as each site is different. But at least I will have a better idea of what you need to do.
Please post the neccessary steps to set the FQDN hostname in Sendmail, so other people will be able to find the solution in the archives. There are much less people using Sendmail here than people using Postfix, so it's not easy to get help for Sendmail here. The steps I mentioned to configure Postfix will work on any system, by the way, regardless which distribution you use. I have to admit that I do not configure Postfix the Suse way, I simply do not understand the configure process in yast. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
When I set the machine up, I set the hostname to gandalf.cox.net. cox.net is the domain of my ISP. Mike Sandy Drobic wrote:
Mike Noble wrote:
Since I don't use any mailer at home, I have removed postfix and have installed sendmail. This will allow me to see how suse uses sendmail (or modified from original), will also set it up to use my ISP smtp server as a smart host. Nobody will be able tell you what you need to do as each site is different. But at least I will have a better idea of what you need to do.
Please post the neccessary steps to set the FQDN hostname in Sendmail, so other people will be able to find the solution in the archives.
There are much less people using Sendmail here than people using Postfix, so it's not easy to get help for Sendmail here.
The steps I mentioned to configure Postfix will work on any system, by the way, regardless which distribution you use. I have to admit that I do not configure Postfix the Suse way, I simply do not understand the configure process in yast.
Sandy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike Noble wrote:
When I set the machine up, I set the hostname to gandalf.cox.net. cox.net is the domain of my ISP.
So the output of `hostname -f` is used as the FQDN by sendmail? Well, that should be enough to get the original poster on the right track. How would you set up the hostname for Sendmail, when you are using a private domain like "myserver.athome"? Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Depending on the number of machines you might want to setup a forwarding only DNS server. This tells you how to do it. http://sendmail.org/tips/private-dns/ Mike Sandy Drobic wrote:
Mike Noble wrote:
When I set the machine up, I set the hostname to gandalf.cox.net. cox.net is the domain of my ISP.
So the output of `hostname -f` is used as the FQDN by sendmail? Well, that should be enough to get the original poster on the right track.
How would you set up the hostname for Sendmail, when you are using a private domain like "myserver.athome"?
Sandy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-11-26 at 21:38 +0100, Sandy Drobic wrote:
So the output of `hostname -f` is used as the FQDN by sendmail? Well, that should be enough to get the original poster on the right track.
No, I don't think so. He said in the Spanish list - I'm starting to "hate" having to go searching in my archive instead of him speaking up - that: |> si ejecuto hostname aparece "www" |> si ejecuto hostname -f aparece www.dominio.com Ie, he gets "www" for the command 'hostname' and "www.dominio.com" for 'hostname -f'. Also, I know he is using an adsl modem(?) router, giving his server an IP in the range 192.168.0.x. I have to assume he (the router) is using nat. He'd better clarify this himself.
How would you set up the hostname for Sendmail, when you are using a private domain like "myserver.athome"?
I believe that Yast would set that correctly; alternatively, you can edit /etc/sysconfig/sendmail and run SuSEconfig afterwards. I did that when sendmail was the default in SuSE and it worked fine without having to touch the real sendmail configuration. But I don't remember the details. With postfix, we can let Yast do an initial configuration, then forget Yast and do it ourselves: the config is humanly readable ;-) However, I'm not going to install sendmail to check. But looking inside the rpm, I see there is a '/sbin/conf.d/SuSEconfig.sendmail' file. Let's see what I can learn. Ah: # Know about FQHOSTNAME test -s $r/etc/HOSTNAME && read -t 1 FQHOSTNAME < $r/etc/HOSTNAME I think that setting is what it will be using. I see it reads some configuration files: /etc/rc.config /etc/sysconfig/mail /etc/sysconfig/sendmail /etc/sysconfig/amavis But I don't see where it gets the default '/etc/sysconfig/sendmail' from. Ah, from '/var/adm/fillup-templates/*'. There are two files there: 'sysconfig.mail-sendmail' and 'sysconfig.sendmail'. ... Searching to see where the variable 'FQHOSTNAME' is defined, I see a reference in '/etc/sysconfig/apache': # If empty ("") it defaults to root@$FQHOSTNAME. FQHOSTNAME is set in # /etc/sysconfig/network/config. But I don't see it there - perhaps I understood it wrong. Mmmm... I'm reading the 'sysconfig.sendmail' file, but I don't get it. Perhaps it is 'MASQUERADE_DOMAINS'. Dunno. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFaivmtTMYHG2NR9URAoPBAJ4z2AV/2AihSkFZ+CcSHUnvSTJ8PgCdEYDb AMXZt+ngMeJa1MErEGYpQvA= =x74M -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
If he is trying to send from his machine, the problem is that it does not have an MX record. Here is a dig for www.domino.com and then for the mx record. You will see there is no mx record. mgnoble@gandalf:~> dig www.domino.com ; <<>> DiG 9.3.2 <<>> www.domino.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37206 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;www.domino.com. IN A ;; ANSWER SECTION: www.domino.com. 600 IN A 83.231.140.13 ;; AUTHORITY SECTION: domino.com. 151758 IN NS ns1.domino.com. domino.com. 151758 IN NS ns.domino.com. ;; Query time: 175 msec ;; SERVER: 68.6.16.25#53(68.6.16.25) ;; WHEN: Sun Nov 26 16:18:51 2006 ;; MSG SIZE rcvd: 83 mgnoble@gandalf:~> dig www.domino.com mx ; <<>> DiG 9.3.2 <<>> www.domino.com mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7081 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;www.domino.com. IN MX ;; AUTHORITY SECTION: domino.com. 600 IN SOA ns.domino.com. hostmaster.domino.com. 2106052508 3600 600 1800000 3600 ;; Query time: 171 msec ;; SERVER: 68.6.16.25#53(68.6.16.25) ;; WHEN: Sun Nov 26 16:19:14 2006 ;; MSG SIZE rcvd: 82 Mike Carlos E. R. wrote:
The Sunday 2006-11-26 at 21:38 +0100, Sandy Drobic wrote:
So the output of `hostname -f` is used as the FQDN by sendmail? Well, that should be enough to get the original poster on the right track.
No, I don't think so.
He said in the Spanish list - I'm starting to "hate" having to go searching in my archive instead of him speaking up - that:
|> si ejecuto hostname aparece "www" |> si ejecuto hostname -f aparece www.dominio.com
Ie, he gets "www" for the command 'hostname' and "www.dominio.com" for 'hostname -f'. Also, I know he is using an adsl modem(?) router, giving his server an IP in the range 192.168.0.x. I have to assume he (the router) is using nat.
He'd better clarify this himself.
How would you set up the hostname for Sendmail, when you are using a private domain like "myserver.athome"?
I believe that Yast would set that correctly; alternatively, you can edit /etc/sysconfig/sendmail and run SuSEconfig afterwards. I did that when sendmail was the default in SuSE and it worked fine without having to touch the real sendmail configuration. But I don't remember the details.
With postfix, we can let Yast do an initial configuration, then forget Yast and do it ourselves: the config is humanly readable ;-)
However, I'm not going to install sendmail to check. But looking inside the rpm, I see there is a '/sbin/conf.d/SuSEconfig.sendmail' file. Let's see what I can learn.
Ah:
# Know about FQHOSTNAME test -s $r/etc/HOSTNAME && read -t 1 FQHOSTNAME < $r/etc/HOSTNAME
I think that setting is what it will be using.
I see it reads some configuration files:
/etc/rc.config /etc/sysconfig/mail /etc/sysconfig/sendmail /etc/sysconfig/amavis
But I don't see where it gets the default '/etc/sysconfig/sendmail' from. Ah, from '/var/adm/fillup-templates/*'. There are two files there: 'sysconfig.mail-sendmail' and 'sysconfig.sendmail'.
...
Searching to see where the variable 'FQHOSTNAME' is defined, I see a reference in '/etc/sysconfig/apache':
# If empty ("") it defaults to root@$FQHOSTNAME. FQHOSTNAME is set in # /etc/sysconfig/network/config.
But I don't see it there - perhaps I understood it wrong.
Mmmm...
I'm reading the 'sysconfig.sendmail' file, but I don't get it. Perhaps it is 'MASQUERADE_DOMAINS'.
Dunno.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-11-26 at 16:22 -0800, Mike Noble wrote:
If he is trying to send from his machine, the problem is that it does not have an MX record.
Here is a dig for www.domino.com and then for the mx record. You will see there is no mx record.
X'-) Sorry. It was "www.dominio.com", which is our way of saying "www.somedomain.com". I don't know his real domain, but he said it was correct, and I think he is right in that (he is receiving email, I understand, so he must have an MX entry). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFajNetTMYHG2NR9URAjJ2AJwI/uaQJMptrX0g+WNBQCJEvh3hUwCeOK7N gZzoIzXkeI+T8nYuHNrD5QI= =j9Pm -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, give me a break, the problem is solved. I have an mx entry configured correctly. I have a public and static ip address I have a registered domain name. My dns is configured correctly. Only the problem was a bad configuration in the sendmail.cf file. This is the change I was made in this file. thanks again.
thanks Sandy, in the page
i found the answer to my problem in the configuration file sendmail.cf
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain #Dj$w.Foo.COMUncomment the macro and include the fully qualified host name.
The entry is similar to this for penguin.southpole.com:
i use:
Djwww.mydomain.com
restart the sendmail and that´s all.
this solved the problem.
thanks to all
hanks to the list
btw
Pipiriz ----- Original Message ----- From: "Carlos E. R." <robin.listas@telefonica.net> To: "OpenSuSE-en" <opensuse@opensuse.org> Sent: Sunday, November 26, 2006 6:37 PM Subject: Re: [opensuse] can anyone help to configure a fully-qualified hostname in sendmail?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Sunday 2006-11-26 at 16:22 -0800, Mike Noble wrote:
If he is trying to send from his machine, the problem is that it does not have an MX record.
Here is a dig for www.domino.com and then for the mx record. You will see there is no mx record.
X'-)
Sorry. It was "www.dominio.com", which is our way of saying "www.somedomain.com". I don't know his real domain, but he said it was correct, and I think he is right in that (he is receiving email, I understand, so he must have an MX entry).
- -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76
iD8DBQFFajNetTMYHG2NR9URAjJ2AJwI/uaQJMptrX0g+WNBQCJEvh3hUwCeOK7N gZzoIzXkeI+T8nYuHNrD5QI= =j9Pm -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-11-26 at 19:08 -0600, pipiriz wrote:
Hi, give me a break, the problem is solved.
I know. I'm glad to hear from you ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFakkstTMYHG2NR9URAjP1AJ9RFCgCUbZ+LHGgZR/C33re9325WwCfY2Wk TiLIjK0HZ4tz6KB+X2/LjfE= =3dem -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Nov 26, 2006 at 07:08:38PM -0600, pipiriz wrote:
Hi, give me a break, the problem is solved.
I have an mx entry configured correctly.
I have a public and static ip address
I have a registered domain name.
My dns is configured correctly.
Only the problem was a bad configuration in the sendmail.cf file.
This is the change I was made in this file.
Don't touch sendmail.cf nor submit.cf but use the configuration with /etc/sysconfig/mail and /etc/sysconfig/sendmail togther with `SuSEconfig --module sendmail' _OR_ disable SuSEconfig within /etc/sysconfig/suseconfig if you're doing all by hand (without using YaST and/or SuSEconfig anymore). If you're are touching files like sendmail.cf SuSEconfig will not touch such file anymore due MD% checksum comparision. And even if you change sendmail.cf and/or submit.cf for you're own you should use /etc/mail/linux.mc and/or /etc/mail/linux.submit.mc as starting point to use the M4 macros for generating sendmail.cf and/or submit.cf ... simply to be sure not to run over a removed TAB with space within a .cf file :)) Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
pipiriz wrote:
Hi, give me a break, the problem is solved.
I have an mx entry configured correctly.
I have a public and static ip address
I have a registered domain name.
My dns is configured correctly.
Glad to hear that your problem is solved. Just to clarify a few general things about SMTP: - the HELO string that the sending server is using is not derived from DNS, it's usually the hostname that is configured locally on the machine. RFC 2821 says, this string has to be a resolvable FQDN for a domain/host. - a sending server does not neccessarily need a MX record, only correct A record and reverse DNS - the MX record is used to announce servers that will accept mail for a domain, not neccessarily server that will send for a domain. - if the server is both sending and receiving mails for a domain, then all records (MX, A, reverse DNS) are neccessary. - if no MX record is set for a domain, mail will be sent to the A record of that domain. Though you should set a MX record. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-11-27 at 12:30 +0100, Sandy Drobic wrote:
Just to clarify a few general things about SMTP:
I'm saving these notes ;-)
- the HELO string that the sending server is using is not derived from DNS, it's usually the hostname that is configured locally on the machine. RFC 2821 says, this string has to be a resolvable FQDN for a domain/host.
Fortunately (for me) not many enforce this.
- a sending server does not neccessarily need a MX record, only correct A record and reverse DNS
Unless some one enforces it on the receiving end as an antispam measure, I guess :-?
- the MX record is used to announce servers that will accept mail for a domain, not neccessarily server that will send for a domain.
- if the server is both sending and receiving mails for a domain, then all records (MX, A, reverse DNS) are neccessary.
- if no MX record is set for a domain, mail will be sent to the A record of that domain. Though you should set a MX record.
I think that it is usually rejected as domain must exist or similar message, but again, that may be an antispam measure. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFatD3tTMYHG2NR9URAr6oAKCH4aPtsatCJxyOJR4r12XBtlTJ6QCfVptH O3KzoXxG4m8Sd1pfJrMB+J4= =LNdn -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2006-11-27 at 12:30 +0100, Sandy Drobic wrote:
Just to clarify a few general things about SMTP:
I'm saving these notes ;-)
- the HELO string that the sending server is using is not derived from DNS, it's usually the hostname that is configured locally on the machine. RFC 2821 says, this string has to be a resolvable FQDN for a domain/host.
Fortunately (for me) not many enforce this.
A lot of host do not have correct HELO implemented, Postfix can check this with REJECT_UNKNOWN_HOSTNAME (for Postfix 2.3+ this has been renamed to REJECT_UNKNOWN_HELO_HOSTNAME). Even big Internet companies like Yahoo and Google have misconfigured HELO for their servers, so it's not recommended to use these restrictions on a general mailserver. Postfix doesn't even have a check that says the a record and helo must be identical, and for good reason. To number of false positives would be astronomical. (^-^) It is considered "best practise", but it's not what is implemented on many servers.
- a sending server does not neccessarily need a MX record, only correct A record and reverse DNS
Unless some one enforces it on the receiving end as an antispam measure, I guess :-?
Then he's an idiot. Especially big companies that are sending millions of mails per day have dedicated send-only mailservers, so it's NOT a good idea to demand that the very same server that is sending a mail is required to accept mail back for the sender address.
- the MX record is used to announce servers that will accept mail for a domain, not neccessarily server that will send for a domain.
- if the server is both sending and receiving mails for a domain, then all records (MX, A, reverse DNS) are neccessary.
- if no MX record is set for a domain, mail will be sent to the A record of that domain. Though you should set a MX record.
I think that it is usually rejected as domain must exist or similar message, but again, that may be an antispam measure.
I encountered such a weird "antispam" measure only once. This is not covered by any RFC. RFC 2821 explicitely says, if no mx record exists for the recipient domain then the server has to resolve the a record of the recipient domain and deliver the mail to that server. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I installed sendmail and have sent myself email messages which went to my ISP first. Suse has done a great job in using Sysconfig Editor via yast, just choose network - mail - sendmail. This is where I set the SENDMAIL_SMARTHOST to point to my ISP smtp server. Modified the /etc/mail/aliases file to send root and my mail to my ISP (don't want to keep it on the machine). Mike Sandy Drobic wrote:
Mike Noble wrote:
Carlos E. R. wrote:
The Saturday 2006-11-25 at 17:37 -0800, Mike Noble wrote:
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused. I did send the OP a direct reply (forgot reply to was not set to list) telling him make changes to sendmail. Could you post those changes here, just for the record? Even if I don't use sendmail now, I like to learn. :-)
One of the best places to information about sendmail is to go to: http://sendmail.org/
I was also hoping for a bit more specific advice. For Postfix the procedure would be:
servername: www domain: example.com
as root: postconf -e "myhostname = www.example.com" postfix reload
If you've got some strange setup where you don't want to use the hostname as HELO, you can set the helo name of the server with:
postconf -e "smtp_helo_name = mail.example.com" postfix reload
The default of smtp_helo_name is $myhostname: # postconf -d smtp_helo_name smtp_helo_name = $myhostname
So usually it's not neccessary.
I tried to find the information on the sendmail.org site, but didn't find anything useful within a few minutes. Do you have a more specific link for basic Sendmail setup including hostname?
To setup DNS for private address space, you can find at: http://sendmail.org/tips/private-dns/
Of course private address space was never mentioned, I'm just assuming that he does not have valid IP and that all internal IP addresses are being NAT'd to a valid IP address on the internet.
Judging from the hostname "www" that he used he is probably trying to send mail from a webserver using the local Sendmail installation. So he probably has an official IP (and hopefully correctly set up dns and reverse dns).
Sandy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike Noble wrote:
I installed sendmail and have sent myself email messages which went to my ISP first. Suse has done a great job in using Sysconfig Editor via yast, just choose network - mail - sendmail. This is where I set the SENDMAIL_SMARTHOST to point to my ISP smtp server.
Glad to hear that Suse did a good job. The poster with the original problem wasn't using a smarthost, he wanted to send directly, otherwise he wouldn't have run into that much trouble. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike Noble wrote:
Sandy Drobic wrote:
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2006-11-25 at 13:55 -0800, Mike Noble wrote:
I realize that both are supported, but Postfix is installed by default. We can change the default, and the OP has a problem with sendmail. Even if postfix is easier, that does not help him. I always advocate Postfix as the better alternative, but Carlos is right. This isn't helping the OP.
Actually I hate Postfix and have used Sendmail for over 15 years. What I was trying to say was that maybe he has them confused.
Agreed, he did sound a bit baffled. (^-°) Glad to see that some people here are using Sendmail and are willing to offer help. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
thanks Sandy, in the page http://docs.hp.com/en/5991-7401/ch03s07.html#sendmail-sect i found the answer to my problem in the configuration file sendmail.cf # my official domain name # ... define this only if sendmail cannot automatically determine your domain #Dj$w.Foo.COMUncomment the macro and include the fully qualified host name. The entry is similar to this for penguin.southpole.com:i use:Djwww.mydomain.comrestart the sendmail and that´s all.this solved the problem.thanks to allby the waythanks to the list ----- Original Message ----- From: "Sandy Drobic" <suse-linux-e@japantest.homelinux.com> To: "OpenSuSE-en" <opensuse@opensuse.org> Sent: Saturday, November 25, 2006 6:05 PM Subject: Re: [opensuse] can anyone help to configure a fully-qualified hostname in sendmail?
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2006-11-25 at 13:55 -0800, Mike Noble wrote:
I realize that both are supported, but Postfix is installed by default.
We can change the default, and the OP has a problem with sendmail. Even if postfix is easier, that does not help him.
I always advocate Postfix as the better alternative, but Carlos is right. This isn't helping the OP.
Perhaps the OP should try to use the MTA configuration module in yast. Sorry, can't give any specific help for sendmail, though I found this URL: http://docs.hp.com/en/5991-7401/ch03s07.html#sendmail-sect
Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Nov 26, 2006 at 12:54:47AM +0100, Carlos E. R. wrote:
The Saturday 2006-11-25 at 13:55 -0800, Mike Noble wrote:
I realize that both are supported, but Postfix is installed by default.
We can change the default, and the OP has a problem with sendmail. Even if postfix is easier, that does not help him.
Guess: This because the DNS of the network isn't configured or not configured in the correct way. First of all the system requires a name (normally without any domain name part). Then the system requires for each network a Full Qualified Domain Name (please note that the former name can be part of the FQDN but can also an other host name and can also be different for each network). At last the YP domain name has nothing todo with the DNS domain name even if normally identical for practial reasons. If postfix or sendmail do not know about the FQDN of the networks accessible then it have to be configured. This can be done by using a DNS server of the appropiate network or within the configuration of postfix or sendmail. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 25 November 2006 07:17, pipiriz wrote:
Does anyone know how can i configure the sendmail like a fully-qualified hostname
This is an example of the error: --------------------------------------------------------------------------- -- The following addresses had permanent fatal errors ----- account@domain.com
(reason: 550 <www>: Helo command rejected: need fully-qualified hostname)
----- Transcript of session follows ----- ... while talking to
mx.kpnqwest.it.:
DATA
<<< 550 <www>: Helo command rejected: need fully-qualified hostname 550 5.1.1 <account@domain.com>...
--------------------------------------------------------------------------- -------
questions:
the part of the message ""(reason: 550 <www>: "" is from my sendmail?
how can i configure the sendmail like a fully-qualified hostname
If your machine's name is set up properly in yast it will pick this up automatically. You can over ride it in /etc/sendmail.cf by finding this section and setting it as needed... # who I masquerade as (null for no masquerading) (see also $=M) DMYourDomain.com The less you do inside of sendmail.cf the better. So make sure you machine name settings in yast are correct first, and then carefully follow thru the sendmail settings in Yast MTA settings. -- _____________________________________ John Andersen
Does anyone know how can i configure the sendmail like a fully-qualified hostname
/etc/sysconfig/sendmail and /etc/sysconfig/mail. Edit the proper places. Run SuSEconfig. Reload/restart sendmail.
questions:
the part of the message ""(reason: 550 <www>: "" is from my sendmail?
Looks more like your MUA can't figure out the FQDN. See if - /etc/HOSTNAME contains the FQDN - OR - - /etc/HOSTNAME contains the hostname and /etc/domainname contains the domain name part, both together forming the FQDN
how can i configure the sendmail like a fully-qualified hostname
-`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-11-25 at 22:43 +0100, Jan Engelhardt wrote:
The Saturday 2006-11-25 at 10:17 -0600, pipiriz wrote:
Does anyone know how can i configure the sendmail like a fully-qualified hostname
/etc/sysconfig/sendmail and /etc/sysconfig/mail. Edit the proper places. Run SuSEconfig. Reload/restart sendmail.
That's what I told him in the Spanish list; he posted there first, but we couldn't help him much.
questions:
the part of the message ""(reason: 550 <www>: "" is from my sendmail?
Looks more like your MUA can't figure out the FQDN. See if - /etc/HOSTNAME contains the FQDN - OR - - /etc/HOSTNAME contains the hostname and /etc/domainname contains the domain name part, both together forming the FQDN
- From the info I have, I understood it was the EHLO greeting that gave "www" as the host name, and the other end is rejecting that. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFaNmjtTMYHG2NR9URAj8mAKCQRvU8/JTNLQEUfOchE9RVOXHBBQCdGB4s h3zbjHX8prB8J/Ebd+vgJZc= =8xFE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (8)
-
Carlos E. R.
-
Dr. Werner Fink
-
Jan Engelhardt
-
John
-
John Andersen
-
Mike Noble
-
pipiriz
-
Sandy Drobic