Data for configuration of mail, input and output functions.
List of Global Functions
AutoPackages - Return required packages for auto-installation
CreateConfig - If MAIL_CREATE_CONFIG is not yes, the user does not want SuSEconfig to modify sendmail.cf/main.cf. So we will warn him before setting it to yes.
Export - Dump the mail settings to a single map (For use by autoinstallation.)
Fake - Make up data for screnshots
Import - Get all mail settings from the first parameter (For use by autoinstallation.)
ProbePackages - Detect which packages have to be installed and return a descriptive string for a plain text pop-up.
Read - Read all mail settings from the SCR
Summary - Summary
Touch - A convenient shortcut for setting touched.
Write - Update the SCR according to mail settings
List of Global Variables
amavis_allowed - Is amavis available on the installation media?
connection_type - `permanent, `dialup or `none
fetchmail - List of maps: $[server:, protocol:, remote_user:, local_user:, password:, enabled:(bool), other_(server|client)_options: ]
fetchmail_mode - When should fetchmail run: <dl> <dt> `manual <dd> <dt> `ppp <dd> for a ppp conection, /etc/ppp/ip-{up,down}.d <dt> `network <dd> for any network connection, /etc/sysconfig/network/if-{up,down}.d </dl> #22903 Unused yet! #37139, just enable rcfetchmail.
from_header - Mail will appear to come from this domain. Applies also for the envelope. Does not apply for mail from root.
install_packages - Read only, set by ProbePackages. Use as an argument to Package::DoInstallAndRemove
listen_remote - If false, port 25 will listen only for localhost
local_domains - Domains for locally delivered mail. (ahost.acompany.com is a domain)
masquerade_other_domains - If empty, from_header will be applied to mails coming from local_domains, otherwise from these domains. (Remember: mail domains)
masquerade_users - User specific sender masquerading. List of maps: $[comment:, user:, address:] (all are strings)
mta - `sendmail, `postfix or `other Initialized by ReadMta
outgoing_mail_server - A relay server for outgoing mail. May be enclosed in [brackets] to prevent MX lookups.
postfix_mda - sysconfig/postfix:POSTFIX_MDA #26052
protocol_choices - Fetchmail protocols, as defined in rcfile_l.l Probably not all of them are compatible with our simplified scheme but it does not hurt to include them. Must check for validity: the agent matches [[:alnum:]]+, lowercase names are valid too.
remove_packages - Read only, set by ProbePackages. Use as an argument to Package::DoInstallAndRemove
required_packages - Required packages
smtp_auth - SMTP AUTH (#23000) list of maps: The ui only handles the first list item, the rest is for autoyast $[server: string, user: string, password: string(plain text)] There are other map keys that must be preserved on editing.
touched - Has the configuration been changed? Can be used as an argument to Popup::ReallyAbort
use_amavis - Use a virus scanner (AMaViS). amavisd-new (mta-independent) must be installed. It will be installed if amavis_allowed and it is not installed.
virtual_users - Domain-specific aliases. List of maps: $[comment:, alias:, destinations:] (all are strings)
write_only - If true, don't run SuSEconfig or restart the services. Autoinstall uses this to do all in one place.
Return required packages for auto-installation
Return value
map - of packages to be installed and to be removed
If MAIL_CREATE_CONFIG is not yes, the user does not want SuSEconfig to modify sendmail.cf/main.cf. So we will warn him before setting it to yes.
Return value
boolean - Is it yes?
Dump the mail settings to a single map (For use by autoinstallation.)
Return value
map - Dumped settings (later acceptable by Import ())
Get all mail settings from the first parameter (For use by autoinstallation.)
Function parameters
map Settings
Return value
boolean - True on success
Detect which packages have to be installed and return a descriptive string for a plain text pop-up.
Return value
string - "" or "Foo will be installed.\nBar will be installed.\n"
Read all mail settings from the SCR
Function parameters
block<boolean> abort
Return value
boolean - True on success
A convenient shortcut for setting touched.
Function parameters
boolean really
Return value
void
List of maps: $[server:, protocol:, remote_user:, local_user:, password:, enabled:(bool), other_(server|client)_options: ]
When should fetchmail run: <dl> <dt> `manual <dd> <dt> `ppp <dd> for a ppp conection, /etc/ppp/ip-{up,down}.d <dt> `network <dd> for any network connection, /etc/sysconfig/network/if-{up,down}.d </dl> #22903 Unused yet! #37139, just enable rcfetchmail.
Mail will appear to come from this domain. Applies also for the envelope. Does not apply for mail from root.
Read only, set by ProbePackages. Use as an argument to Package::DoInstallAndRemove
If empty, from_header will be applied to mails coming from local_domains, otherwise from these domains. (Remember: mail domains)
User specific sender masquerading. List of maps: $[comment:, user:, address:] (all are strings)
A relay server for outgoing mail. May be enclosed in [brackets] to prevent MX lookups.
Fetchmail protocols, as defined in rcfile_l.l Probably not all of them are compatible with our simplified scheme but it does not hurt to include them. Must check for validity: the agent matches [[:alnum:]]+, lowercase names are valid too.
Read only, set by ProbePackages. Use as an argument to Package::DoInstallAndRemove
SMTP AUTH (#23000) list of maps: The ui only handles the first list item, the rest is for autoyast $[server: string, user: string, password: string(plain text)] There are other map keys that must be preserved on editing.
Has the configuration been changed? Can be used as an argument to Popup::ReallyAbort
Use a virus scanner (AMaViS). amavisd-new (mta-independent) must be installed. It will be installed if amavis_allowed and it is not installed.
Domain-specific aliases. List of maps: $[comment:, alias:, destinations:] (all are strings)