LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-16-2017, 02:07 PM   #1
sinisterporpoise
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Rep: Reputation: Disabled
Why is my hosted e-mail server's postfix server not working properly?


I have a Debian 7 server set up. It's running Wordpress just fine. It's sending out e-mails just fine using Alpine. I don't know if it's getting e-mails back, although I have no problems gettings email from cron.

Forgive me if I'm posting this in the wrong forum, and because I know it's going to be asked, please give me some time to get therelevant error logs and configuration files.

Last edited by sinisterporpoise; 04-19-2017 at 07:15 PM.
 
Old 04-16-2017, 02:25 PM   #2
sinisterporpoise
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Squirrel Mail Error Message
Quote:
Message not sent. Server replied:
Authentication required
530 5.7.0 Must issue a STARTTLS command first
Mail.log File
Quote:
Apr 16 14:15:22 acecaknews postfix/master[20927]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 16 14:15:22 acecaknews postfix/master[20927]: warning: process /usr/lib/postfix/smtpd pid 22295 exit status 1
Apr 16 14:15:22 acecaknews postfix/master[20927]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 16 14:16:22 acecaknews postfix/smtps/smtpd[22300]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Apr 16 14:16:22 acecaknews postfix/submission/smtpd[22299]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Apr 16 14:16:23 acecaknews postfix/master[20927]: warning: process /usr/lib/postfix/smtpd pid 22300 exit status 1
Apr 16 14:16:23 acecaknews postfix/master[20927]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 16 14:16:23 acecaknews postfix/master[20927]: warning: process /usr/lib/postfix/smtpd pid 22299 exit status 1
Apr 16 14:16:23 acecaknews postfix/master[20927]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 16 14:16:40 acecaknews postfix/anvil[22272]: statistics: max connection rate 1/60s for (smtp:40.77.105.185) at Apr 16 14:13:19
Apr 16 14:16:40 acecaknews postfix/anvil[22272]: statistics: max connection count 1 for (smtp:40.77.105.185) at Apr 16 14:13:19
Apr 16 14:16:40 acecaknews postfix/anvil[22272]: statistics: max cache size 1 at Apr 16 14:13:19
Master.cf File
Code:
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_wrappermode=no
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
  -o smtpd_sasl_type=dovecot
  -o smtpd_sasl_path=private/auth
#smtp      inet  n       -       -       -       1       postscreen
#smtpd     pass  -       -       -       -       -       smtpd
#dnsblog   unix  -       -       -       -       0       dnsblog
#tlsproxy  unix  -       -       -       -       0       tlsproxy

submission inet n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

smtps     inet  n       -       -       -       -       smtpd

  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp

      -o smtp_helo_timeout=5 -o smtp_connect_timeout=5

showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
Main.cf File
Code:
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.

myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname=acecaknews.com
alias_maps=hash:/etc/aliases
alias_database=hash:/etc/aliases
myorigin=/etc/mailname
mydestination=acecake.news, acecaknews.com, localhost.com, localhost
relayhost=
mynetworks=127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit=0
recipient_delimiter=+
inet_interfaces=all
myhostname=acecake.news

relay_domains = acecake.news

smtpd_tls_cert_file=/etc/ssl/certs/mailcert.pem
smtpd_tls_key_file=/etc/ssl/private/mail.key
smtpd_use_tls=yes
smtpd_tls_auth_only = no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_security_level=may


smtpd_recipient_restrictions = permit_mynetworks,
        permit_sasl_authenticated permit

smtpd_helo_restrictions = reject_invalid_helo_hostname,
        reject_non_fqdn_helo_hostname,
        reject_unknown_helo_hostname

smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net

local_recipient_maps = proxy:unix:passwd.byname $alias_maps
Squirrelmail config.php
PHP Code:
<?php

/**
 * SquirrelMail Configuration File
 * Created using the configure script, conf.pl
 */

global $version;
$config_version '1.4.0';
$config_use_color 2;

$org_name      "SquirrelMail";
$org_logo      SM_PATH 'images/sm_logo.png';
$org_logo_width  '308';
$org_logo_height '111';
$org_title     "SquirrelMail $version";
$signout_page  '';
$frame_top     '_top';

$provider_uri     'http://acecake.news/';

$provider_name     'SquirrelMail';

$motd "";

$squirrelmail_default_language 'en_US';
$default_charset       'iso-8859-1';
$lossy_encoding        false;

$domain                 'acecake.news';
$imapServerAddress      'localhost';
$imapPort               143;
$useSendmail            false;
$smtpServerAddress      'localhost';
$smtpPort               25;
$sendmail_path          '/usr/sbin/sendmail';
$sendmail_args          '-i -t';
$pop_before_smtp        false;
$pop_before_smtp_host   '';
$imap_server_type       'other';
$invert_time            false;
$optional_delimiter     'detect';
$encode_header_key      '';

$default_folder_prefix          '';
$trash_folder                   'INBOX.Trash';
$sent_folder                    'INBOX.Sent';
$draft_folder                   'INBOX.Drafts';
$default_move_to_trash          true;
$default_move_to_sent           true;
$default_save_as_draft          true;
$show_prefix_option             false;
$list_special_folders_first     true;
$use_special_folder_color       true;
$auto_expunge                   true;
$default_sub_of_inbox           true;
$show_contain_subfolders_option false;
$default_unseen_notify          2;
$default_unseen_type            1;
$auto_create_special            true;
$delete_folder                  false;
$noselect_fix_enable            false;

$data_dir                 '/var/lib/squirrelmail/data/';
$attachment_dir           '/var/spool/squirrelmail/attach/';
$dir_hash_level           0;
$default_left_size        '150';
$force_username_lowercase false;
$default_use_priority     true;
$hide_sm_attributions     false;
$default_use_mdn          true;
$edit_identity            true;
$edit_name                true;
$hide_auth_header         false;
$allow_thread_sort        false;
$allow_server_sort        false;
$allow_charset_search     true;
$uid_support              true;

$plugins[0] = 'view_as_html';
$plugins[1] = 'administrator';
$plugins[2] = 'bug_report';
$plugins[3] = 'calendar';
$plugins[4] = 'delete_move_next';
$plugins[5] = 'demo';
$plugins[6] = 'filters';
$plugins[7] = 'fortune';
$plugins[8] = 'info';
$plugins[9] = 'listcommands';
$plugins[10] = 'mail_fetch';
$plugins[11] = 'message_details';
$plugins[12] = 'newmail';
$plugins[13] = 'sent_subfolders';
$plugins[14] = 'spamcop';
$plugins[15] = 'squirrelspell';
$plugins[16] = 'test';
$plugins[17] = 'translate';

$theme_css '';
$theme_default 0;
$theme[0]['PATH'] = SM_PATH 'themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[1]['PATH'] = SM_PATH 'themes/plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';
$theme[2]['PATH'] = SM_PATH 'themes/sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Storm';
$theme[3]['PATH'] = SM_PATH 'themes/deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
$theme[4]['PATH'] = SM_PATH 'themes/slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
$theme[5]['PATH'] = SM_PATH 'themes/purple_theme.php';
$theme[5]['NAME'] = 'Purple';
$theme[6]['PATH'] = SM_PATH 'themes/forest_theme.php';
$theme[6]['NAME'] = 'Forest';
$theme[7]['PATH'] = SM_PATH 'themes/ice_theme.php';
$theme[7]['NAME'] = 'Ice';
$theme[8]['PATH'] = SM_PATH 'themes/seaspray_theme.php';
$theme[8]['NAME'] = 'Sea Spray';
$theme[9]['PATH'] = SM_PATH 'themes/bluesteel_theme.php';
$theme[9]['NAME'] = 'Blue Steel';
$theme[10]['PATH'] = SM_PATH 'themes/dark_grey_theme.php';
$theme[10]['NAME'] = 'Dark Grey';
$theme[11]['PATH'] = SM_PATH 'themes/high_contrast_theme.php';
$theme[11]['NAME'] = 'High Contrast';
$theme[12]['PATH'] = SM_PATH 'themes/black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Black Bean Burrito';
$theme[13]['PATH'] = SM_PATH 'themes/servery_theme.php';
$theme[13]['NAME'] = 'Servery';
$theme[14]['PATH'] = SM_PATH 'themes/maize_theme.php';
$theme[14]['NAME'] = 'Maize';
$theme[15]['PATH'] = SM_PATH 'themes/bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
$theme[16]['PATH'] = SM_PATH 'themes/deepocean2_theme.php';
$theme[16]['NAME'] = 'Deep Ocean 2';
$theme[17]['PATH'] = SM_PATH 'themes/blue_grey_theme.php';
$theme[17]['NAME'] = 'Blue Grey';
$theme[18]['PATH'] = SM_PATH 'themes/dompie_theme.php';
$theme[18]['NAME'] = 'Dompie';
$theme[19]['PATH'] = SM_PATH 'themes/methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
$theme[20]['PATH'] = SM_PATH 'themes/greenhouse_effect.php';
$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
$theme[21]['PATH'] = SM_PATH 'themes/in_the_pink.php';
$theme[21]['NAME'] = 'In The Pink (Changes)';
$theme[22]['PATH'] = SM_PATH 'themes/kind_of_blue.php';
$theme[22]['NAME'] = 'Kind of Blue (Changes)';
$theme[23]['PATH'] = SM_PATH 'themes/monostochastic.php';
$theme[23]['NAME'] = 'Monostochastic (Changes)';
$theme[24]['PATH'] = SM_PATH 'themes/shades_of_grey.php';
$theme[24]['NAME'] = 'Shades of Grey (Changes)';
$theme[25]['PATH'] = SM_PATH 'themes/spice_of_life.php';
$theme[25]['NAME'] = 'Spice of Life (Changes)';
$theme[26]['PATH'] = SM_PATH 'themes/spice_of_life_lite.php';
$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
$theme[27]['PATH'] = SM_PATH 'themes/spice_of_life_dark.php';
$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
$theme[28]['PATH'] = SM_PATH 'themes/christmas.php';
$theme[28]['NAME'] = 'Holiday - Christmas';
$theme[29]['PATH'] = SM_PATH 'themes/darkness.php';
$theme[29]['NAME'] = 'Darkness (Changes)';
$theme[30]['PATH'] = SM_PATH 'themes/random.php';
$theme[30]['NAME'] = 'Random (Changes every login)';
$theme[31]['PATH'] = SM_PATH 'themes/midnight.php';
$theme[31]['NAME'] = 'Midnight';
$theme[32]['PATH'] = SM_PATH 'themes/alien_glow.php';
$theme[32]['NAME'] = 'Alien Glow';
$theme[33]['PATH'] = SM_PATH 'themes/dark_green.php';
$theme[33]['NAME'] = 'Dark Green';
$theme[34]['PATH'] = SM_PATH 'themes/penguin.php';
$theme[34]['NAME'] = 'Penguin';
$theme[35]['PATH'] = SM_PATH 'themes/minimal_bw.php';
$theme[35]['NAME'] = 'Minimal BW';
$theme[36]['PATH'] = SM_PATH 'themes/redmond.php';
$theme[36]['NAME'] = 'Redmond';
$theme[37]['PATH'] = SM_PATH 'themes/netstyle_theme.php';
$theme[37]['NAME'] = 'Net Style';
$theme[38]['PATH'] = SM_PATH 'themes/silver_steel_theme.php';
$theme[38]['NAME'] = 'Silver Steel';
$theme[39]['PATH'] = SM_PATH 'themes/simple_green_theme.php';
$theme[39]['NAME'] = 'Simple Green';
$theme[40]['PATH'] = SM_PATH 'themes/wood_theme.php';
$theme[40]['NAME'] = 'Wood';
$theme[41]['PATH'] = SM_PATH 'themes/bluesome.php';
$theme[41]['NAME'] = 'Bluesome';
$theme[42]['PATH'] = SM_PATH 'themes/simple_green2.php';
$theme[42]['NAME'] = 'Simple Green 2';
$theme[43]['PATH'] = SM_PATH 'themes/simple_purple.php';
$theme[43]['NAME'] = 'Simple Purple';
$theme[44]['PATH'] = SM_PATH 'themes/autumn.php';
$theme[44]['NAME'] = 'Autumn';
$theme[45]['PATH'] = SM_PATH 'themes/autumn2.php';
$theme[45]['NAME'] = 'Autumn 2';
$theme[46]['PATH'] = SM_PATH 'themes/blue_on_blue.php';
$theme[46]['NAME'] = 'Blue on Blue';
$theme[47]['PATH'] = SM_PATH 'themes/classic_blue.php';
$theme[47]['NAME'] = 'Classic Blue';
$theme[48]['PATH'] = SM_PATH 'themes/classic_blue2.php';
$theme[48]['NAME'] = 'Classic Blue 2';
$theme[49]['PATH'] = SM_PATH 'themes/powder_blue.php';
$theme[49]['NAME'] = 'Powder Blue';
$theme[50]['PATH'] = SM_PATH 'themes/techno_blue.php';
$theme[50]['NAME'] = 'Techno Blue';
$theme[51]['PATH'] = SM_PATH 'themes/turquoise.php';
$theme[51]['NAME'] = 'Turquoise';

$default_use_javascript_addr_book false;
$abook_global_file '';
$abook_global_file_writeable false;
$abook_global_file_listing true;
$abook_file_line_length 2048;

$addrbook_dsn '';
$addrbook_table 'address';

$prefs_dsn '';
$prefs_table 'userprefs';
$prefs_user_field 'user';
$prefs_key_field 'prefkey';
$prefs_val_field 'prefval';
$addrbook_global_dsn '';
$addrbook_global_table 'global_abook';
$addrbook_global_writeable false;
$addrbook_global_listing false;

$no_list_for_subscribe false;
$smtp_auth_mech 'none';
$imap_auth_mech 'login';
$smtp_sitewide_user '';
$smtp_sitewide_pass '';
$use_imap_tls false;
$use_smtp_tls false;
$session_name 'SQMSESSID';
$only_secure_cookies     true;
$disable_security_tokens false;
$check_referrer          '';
$browser_rendering_mode  'quirks';

$config_location_base    '';

@include 
SM_PATH 'config/config_local.php';
 
Old 04-16-2017, 03:02 PM   #3
sinisterporpoise
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Okay, it looks like my post with all the code is in moderation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server (in Ubuntu) is not working properly sukanta78das Linux - Newbie 2 09-15-2011 01:57 AM
[SOLVED] Postfix relayhost not working, if domain hosted on same server, but MX points outside katru Linux - Server 2 06-23-2010 06:25 PM
Postfix, Amvisd and Postgrey mail server Whitelists not working scheidel21 Linux - Server 0 05-20-2010 11:56 AM
Getting a Postfix mail server working properly on Ubuntu RealMadrid2727 Linux - Server 9 03-31-2009 05:57 PM
Email question - externally hosted mail server jkmb111 Linux - Software 1 05-17-2005 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration