[yast-commit] r61057 - in /trunk/mail: package/yast2-mail.changes src/YaPI/MailServer.pm
Author: varkoly Date: Sun Feb 28 20:00:10 2010 New Revision: 61057 URL: http://svn.opensuse.org/viewcvs/yast?rev=61057&view=rev Log: bnc#584093 yast2-mail creates bad amavisd.conf Modified: trunk/mail/package/yast2-mail.changes trunk/mail/src/YaPI/MailServer.pm Modified: trunk/mail/package/yast2-mail.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/mail/package/yast2-mail.changes?rev=61057&r1=61056&r2=61057&view=diff ============================================================================== --- trunk/mail/package/yast2-mail.changes (original) +++ trunk/mail/package/yast2-mail.changes Sun Feb 28 20:00:10 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Sun Feb 28 18:38:18 UTC 2010 - varkoly@novell.com + +- bnc#584093 yast2-mail creates bad amavisd.conf + +------------------------------------------------------------------- Wed Jan 27 16:10:50 CET 2010 - varkoly@suse.de - fixed syntax errors Modified: trunk/mail/src/YaPI/MailServer.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/mail/src/YaPI/MailServer.pm?rev=61057&r1=61056&r2=61057&view=diff ============================================================================== --- trunk/mail/src/YaPI/MailServer.pm (original) +++ trunk/mail/src/YaPI/MailServer.pm Sun Feb 28 20:00:10 2010 @@ -2403,6 +2403,14 @@ # We create all the DNS attributes. `hostname -f` is the NS and MX entry. my $serial = POSIX::strftime("%Y%m%d%H",localtime); my $host = `hostname -f`; chomp $host; + if( ! $host ) + { + $host = `cat /etc/HOSTNAME`; chomp $host; + if( ! $host ) + { + $host = 'linux.lokal'; + } + } my $tmp = { 'Objectclass' => [ 'dNSZone','suseMailDomain' ], 'zoneName' => $name, 'suseMailDomainType' => $type, @@ -2966,6 +2974,19 @@ my $ismyhostname = 0; my $myhostname = `hostname -f`; chomp $myhostname; my $mydomain = `hostname -d`; chomp $mydomain; + if( ! $myhostname ) + { + $myhostname = `cat /etc/HOSTNAME`; chomp $myhostname; + if( ! $myhostname ) + { + $myhostname = 'linux.lokal'; + } + } + if( ! $mydomain ) + { + my $tmp; + ( $tmp, $mydomain) = split /,/,$myhostname,2; + } foreach my $l ( @ACONF ) { if ( $l =~ s/^\$max_servers = .*;/\$max_servers = $VSCount;/ ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
varkoly@svn.opensuse.org