[Bug 559145] New: Changed Domain name will not regarded in mail settings
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c0 Summary: Changed Domain name will not regarded in mail settings Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: WebYaST AssignedTo: kkaempf@novell.com ReportedBy: schubi@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- The network settings has not been changed while the installation workflow. So the domainname is still "local". After I have setup the mail setting I have tried to send a email via "mail schubi@suse.de" Only a look into /var/log/mail shows me that the relay reject my email: Nov 30 14:08:12 webyast-demo postfix/smtp[11308]: 35266681A5: to=<schubi@suse.de>, relay=relay2.suse.de[149.44.160.134]:25, delay=60, delays=0.07/0.03/30/30, dsn=4 0.0, status=deferred (host relay2.suse.de[149.44.160.134] said: 450 <root@webyast-demo.local>: Sender address rejected: Domain not found (in reply to RCPT TO comm and)) Nov 30 14:08:35 webyast-demo postfix/pickup[11289]: 5033E681B2: uid=0 from=<root> Nov 30 14:08:35 webyast-demo postfix/cleanup[11306]: 5033E681B2: message-id=<20091130130835.5033E681B2@webyast-demo.local> Nov 30 14:08:35 webyast-demo postfix/qmgr[11292]: 5033E681B2: from=<root@webyast-demo.local>, size=434, nrcpt=1 (queue active) The problem is that the user will not be informed that sending mails does not work at all. A testmail to the email address which has been set in the administration module would help to find out that something is wrong at least. Then I have changed the domainname. But the mailsystem still tries to send mails with the wrong (old) domainname.: <root@webyast-demo.local> -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent CC| |jsuchome@novell.com, | |kkaempf@novell.com Found By|--- |Development AssignedTo|kkaempf@novell.com |jsrain@novell.com Target Milestone|--- |Final -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c1 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jsrain@novell.com, | |mvidner@novell.com Info Provider| |varkoly@novell.com AssignedTo|jsrain@novell.com |jsuchome@novell.com --- Comment #1 from Jiří Suchomel <jsuchome@novell.com> 2009-11-30 14:14:49 UTC --- What should mail settings do about the domain? Isn't it a network module task? The mail settings are saved with YaPI::MailServer->WriteGlobalSettings and than postfix is restarted. What else should mail configuration take care of? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c2 --- Comment #2 from Jiří Suchomel <jsuchome@novell.com> 2009-11-30 14:23:02 UTC --- (In reply to comment #0)
Then I have changed the domainname. But the mailsystem still tries to send mails with the wrong (old) domainname.:
<root@webyast-demo.local>
So this is the problem, right? But how to tell mail system which domain to use? Anything needs to be restarted/reloaded? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c3 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mzugec@novell.com --- Comment #3 from Martin Vidner <mvidner@novell.com> 2009-11-30 14:27:03 UTC --- Guess what, YaPI::NETWORK does not call SuSEconfig either :-( -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c4 --- Comment #4 from Jiří Suchomel <jsuchome@novell.com> 2009-11-30 14:32:51 UTC --- Hm, saving network calls YaPI::NETWORK::Write which should (among other things) call /sbin/SuSEconfig --module postfix, anything else is missing? Now I see that mail settings itself does not call SuSEconfig --module postfix: is it needed after YaPI::MailServer->WriteGlobalSettings? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c5 Martin Kudlvasr <mkudlvasr@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkudlvasr@novell.com --- Comment #5 from Martin Kudlvasr <mkudlvasr@novell.com> 2009-11-30 16:29:59 UTC --- I use a registered MAC address for my tests: vbox-bridget.suse.cz . This name is ignored by the webyast appliance (webyast-demo.local everywhere). If I was a customer, I certainly would not be pleased, if all of my 200 dhcp configured appliances had webyast-demo hostname. I asume this is the same problem, so I add it to this bug. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c6 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |varkoly@novell.com Info Provider|varkoly@novell.com | --- Comment #6 from Peter Varkoly <varkoly@novell.com> 2009-11-30 19:55:00 UTC --- 1. If you use YaPI::MailServer->WriteGlobalSettings you do not need to call SuSEconfig --module postfix because the design is: If you use YaPI::Mailserver you must not use SuSEconfig --module postfix. If you use SuSEconfig --module postfix you must not use YaPI::Mailserver. YaPI::Mailserver was designed for setup a Mailserver on a full confiugred server. Which allready has a dns-domainname (hostname -d) 2. SuSEconfig --module postfix sets myhostname to $(hostname -f) or you can set explicitly POSTFIX_MYHOSTNAME in /etc/sysconfig/postfix for this reason. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c7 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |schubi@novell.com --- Comment #7 from Jiří Suchomel <jsuchome@novell.com> 2009-11-30 20:29:43 UTC --- SuSEconfig --module postfix is not called by mail settings module, however, AFAIK it is called by network plugin. Still, myhostname probably is not set correctly. Stefan, if you set POSTFIX_MYHOSTNAME before writing a mail, does it work as you expect? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Changed Domain name will |Changed Domain name not |not regarded in mail |reflected in mail settings |settings | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Critical -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Changed Domain name not |Changed Domain name not |reflected in mail settings |reflected when sending mail -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c8 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsuchome@novell.com |mvidner@novell.com --- Comment #8 from Jiří Suchomel <jsuchome@novell.com> 2009-11-30 22:01:49 UTC --- It is not problem of saving mail settings. Network configuration, including domain name might change, but noone expects re-doing mail config after each such change. So it is network configuration that should care. But this is strange: (In reply to comment #6)
2. SuSEconfig --module postfix sets myhostname to $(hostname -f) or you can set explicitly POSTFIX_MYHOSTNAME in /etc/sysconfig/postfix for this reason.
Martin in comment 3 suggests that it may not be called, but I think Network YaPI really calls e.g. DNS::Write, which calls SuSEconfig. So what is wrong? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c10 Stefan Schubert <schubi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|schubi@novell.com | --- Comment #10 from Stefan Schubert <schubi@novell.com> 2009-12-01 09:01:49 UTC --- comment #7 No, it has no influence. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c11 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |varkoly@novell.com --- Comment #11 from Jiří Suchomel <jsuchome@novell.com> 2009-12-01 09:06:49 UTC --- Peter, see previous comments: POSTFIX_MYHOSTNAME does not help, myhostname is not set correctly although hostname -f reports correct domain. Could you log in to Stefan's image and look at the configuration? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c12 --- Comment #12 from Jiří Suchomel <jsuchome@novell.com> 2009-12-01 13:20:28 UTC --- According to IRC chat, the call of postconf -e myhostname=$( hostname -f ) after network configuration will help. Peter, could you explain it a bit? Is anythng else needed, e.g. postfix reload? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c13 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|varkoly@novell.com | --- Comment #13 from Peter Varkoly <varkoly@novell.com> 2009-12-01 15:39:03 UTC --- As YaPI::MailServer->WriteGlobalSettings either set myhostname nor mydomain. I'll prefer to use postconf -e myhostname=$( hostname -f ) to set the myhostname for postfix. If myhostname is set, mydomain is defined too. Afterthem call rcpostfix restart -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Critical |Major -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559145 http://bugzilla.novell.com/show_bug.cgi?id=559145#c14 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |varkoly@novell.com --- Comment #14 from Jiří Suchomel <jsuchome@novell.com> 2009-12-18 12:56:01 UTC --- I think that for SP1, instead of adding postconf call into Network API, I'd prefer rewriting Mail settings, so it will work with 'usual' SuSEconfig calls. Peter, what should I do to configure mail settings? The settings are still the same: remote SMTP server for sending mails, potentially with login information. Now I'm using YaPI::MailServer->WriteGlobalSettings - what to use to have a 'standard' configuration? Should I use some calls from Mail.ycp? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com