from .xlate import XLATOR
-__version__ = '0.1.9'
+__version__ = '0.1.10'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
VALID_MAIL_METHODS = ('smtp', 'sendmail')
+DEFAULT_DOMAIN = 'pixelpark.com'
# =============================================================================
default_mail_server = 'localhost'
default_smtp_port = 25
+ default_domain = socket.getfqdn()
+ if not default_domain:
+ default_domain = DEFAULT_DOMAIN
current_user_name = pwd.getpwuid(os.getuid()).pw_name
current_user_gecos = pwd.getpwuid(os.getuid()).pw_gecos
- default_mail_from = MailAddress(user=current_user_name, domain=socket.getfqdn())
+ default_mail_from = MailAddress(user=current_user_name, domain=default_domain)
default_mail_from_complete = '{n} <{m}>'.format(n=current_user_gecos, m=default_mail_from)
valid_mail_methods = VALID_MAIL_METHODS