from ..xlate import XLATOR
CONFIG_DIR = 'pixelpark'
-__version__ = '0.1.3'
+__version__ = '0.1.4'
LOG = logging.getLogger(__name__)
VALID_MAIL_METHODS = ('smtp', 'sendmail')
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_domain = socket.getfqdn()
+ if not MailAddress.re_valid_domain.search(default_domain):
+ default_domain = 'pixelpark.com'
+
+ default_mail_from = MailAddress(user=current_user_name, domain=default_domain)
# -------------------------------------------------------------------------
def __init__(