View Full Version : Postfix error
Cajun Mike 03-16-2007, 11:29 AM Mar 16 10:25:11 server1 postfix[26132]: fatal: -c requires absolute pathname
come and learn with me on my magical mystery ride into learing ubuntu linux.
I am setting up a home server to do the following
Serves/stores files
Print Server
Email Gateway stores and sends emails check email from any machine on your net. maybe through the web later?
The basis for the info
Ubuntu Mailserver (https://help.ubuntu.com/community/MailServer)
Fax gateway..
and later .........
eaux-yeah 03-17-2007, 12:30 AM Mar 16 10:25:11 server1 postfix[26132]: fatal: -c requires absolute pathname
wow, never have seen that one.
drunk now, any answer should be construed as highly :mwink: inaccurate.
show the results of postconf -n (mask the sensitive details)
Cajun Mike 03-17-2007, 09:55 AM alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
append_dot_mydomain = no
body_checks = regexp:/etc/postfix/maps/body_checks
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
default_process_limit = 10
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/maps/header_checks
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
message_size_limit = 0
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
mydestination = $myhostname, localhost
mydomain = cajunmike.servecrown.com
myhostname = mail.cajunmike.servecrown.com
mynetworks = 127.0.0.0/8, 192.168.1.0/24
myorigin = $myhostname
recipient_delimiter = +
relay_domains = $mydestination
relayhost = smtp.central.cox.net
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access, permit
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_error_sleep_time = 30
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_hostname, reject_unknown_hostname, reject_invalid_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_rbl_client dnsbl.njabl.org, reject_rbl_client cbl.abuseat.org, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
unknown_local_recipient_reject_code = 550
eaux-yeah 03-18-2007, 04:42 PM Are you using Amavisd-new?
How aout SASL and/or TLS?
Have you ran the newaliases and postmap command to create the necessary databases?
Is smtp.central.cox.net going to allow you to relay through them?
Cajun Mike 03-19-2007, 04:11 PM main.cf
myhostname = mail.cajunmike.servecrown.com
#mydomain = cajunmike.servecrown.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
relay_domains = $mydestination
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0
recipient_delimiter = +
virtual_maps = hash:/etc/postfix/virtual
append_dot_mydomain = no
disable_vrfy_command = yes
default_process_limit = 10
smtpd_error_sleep_time = 30
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
# Let's control everything
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
## Sasl2
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
content_filter = smtp-amavis:[127.0.0.1]:10024
myhostname = mail.cajunmike.servecrown.com
mydomain = cajunmike.servecrown.com
myorigin = server1.cajunmike.servecrown.com
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
relay_domains = server1
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0
recipient_delimiter = +
virtual_maps = hash:/etc/postfix/virtual
append_dot_mydomain = no
disable_vrfy_command = yes
default_process_limit = 10
smtpd_error_sleep_time = 30
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
# Let's control everything
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
## Sasl2
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = server1
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
content_filter = smtp-amavis:[127.0.0.1]:10024
myhostname = mail.cajunmike.servecrown.com
mydomain = cajunmike.servecrown.com
myorigin = cajunmike.servecrown.com
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
relay_domains = $mydestination
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0
recipient_delimiter = +
virtual_maps = hash:/etc/postfix/virtual
append_dot_mydomain = no
disable_vrfy_command = yes
default_process_limit = 10
smtpd_error_sleep_time = 30
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
# Let's control everything
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated, permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
## Sasl2
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = server1
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
content_filter = smtp-amavis:[127.0.0.1]:10024
myhostname = mail.cajunmike.servecrown.com
mydomain = cajunmike.servecrown.com
myorigin = server1.cajunmike.servecrown.com
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
relay_domains = server1
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0
recipient_delimiter = +
virtual_maps = hash:/etc/postfix/virtual
append_dot_mydomain = no
disable_vrfy_command = yes
default_process_limit = 10
smtpd_error_sleep_time = 30
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
# Let's control everything
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
## Sasl2
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
content_filter = smtp-amavis:[127.0.0.1]:10024
myhostname = mail.cajunmike.servecrown.com
mydomain = cajunmike.servecrown.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
relay_domains = $mydestination
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0
recipient_delimiter = +
virtual_maps = hash:/etc/postfix/virtual
append_dot_mydomain = no
disable_vrfy_command = yes
default_process_limit = 10
smtpd_error_sleep_time = 30
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
# Let's control everything
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
## Sasl2
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
content_filter = smtp-amavis:[127.0.0.1]:10024
mydomain = cajunmike.servecrown.com
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
relay_domains = $mydestination
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0
recipient_delimiter = +
virtual_maps = hash:/etc/postfix/virtual
append_dot_mydomain = no
disable_vrfy_command = yes
default_process_limit = 10
smtpd_error_sleep_time = 30
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
# Let's control everything
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
## Sasl2
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
content_filter = smtp-amavis:[127.0.0.1]:10024
relayhost = smtp.central.cox.net
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
main.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#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 - - 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
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error 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}
#
# 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}
#
# Amavisd
#
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
right now I am not feeling to spiffy so take it with a grain of salt
eaux-yeah 03-19-2007, 08:35 PM OK, that paints a much clearer picture.
I'm hoping you just copy/pasted a few too many times in the main.cf, you have mega redundancies in that file. You need to start off with a very simple config file and build up from there.
Replace your entire /etc/postfix/main.cf with this:
myhostname = mail.cajunmike.servecrown.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/spool/mail
home_mailbox = Maildir/
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP $mail_name
append_dot_mydomain = no
default_process_limit = 10
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
>$config_directory/$process_name.$process_id.log & sleep 5
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_pipelining,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
In your /etc/postfix/master.cf file, remove all of the Amavisd-New stuff:
#
# Amavisd
#
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
After that, do:
postfix checkand make sure no errors are reported, then build the aliases database:
newaliasesFinally,
/etc/init.d/postfix restartThat should get you up and going on the SMTP side. Telnet to port 25 (http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) and test the mail server from another system on your network.
In the /var/log directory, there are 4 files that will contain information on everything the postfix server is doing (self explanatory file names):
mail.err
mail.info
mail.log
mail.warn
After everything is running correctly, you can then start adding Sasl/TLS authentication (highly recommended), spam, and virus protection, and other niceties.
Cajun Mike 03-19-2007, 09:13 PM Thanks will do when i am better able to have a cognizant thought process
Cajun Mike 03-20-2007, 05:31 PM Corrected Postfix main.cf
myhostname = mail.cajunmike.servecrown.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/spool/mail
home_mailbox = Maildir/
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP $mail_name
append_dot_mydomain = no
default_process_limit = 10
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
>$config_directory/$process_name.$process_id.log & sleep 5
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_pipelining,
reject_unknown_recipient_domain,
reject_unknown_sender_domain
reject_unauth_destination,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
Corrected Postfix master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#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 - - 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
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error 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}
#
# 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}
Now onto the next setup in the chain.
Cajun Mike 03-21-2007, 12:40 PM added this to main.cf for sasl
# modify the existing smtpd_recipient_restrictions
smtpd_recipient_restrictions = reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unauth_destination,
check_policy_service inet:127.0.0.1:60000,
permit
# modify the existing smtpd_sender_restrictions
smtpd_sender_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unauth_pipelining,
permit
# then add these
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql sql_hostnames: 127.0.0.1 sql_user: mail sql_passwd: apasswd
sql_database: maildb
sql_select: select clear from users where id='%u@%r' and enabled = 1
eaux-yeah 03-21-2007, 02:16 PM Remember that Sasl (SMTP-AUTH) and TLS work together. Sasl is the authentication method and TLS is the encryption layer that encrypts everything between the sender and recipient.
In the smtpd.conf file, you have yours set to use sql database. For a large mail server setup, this is nice, for a few users, it's way too much. Use the sasldb. You will need to create TLS keys, also.
http://www.howtoforge.com/perfect_setup_ubuntu_6.10_p5
Remove:
check_policy_service inet:127.0.0.1:60000
Since your server is NOT going to be receiving mail directly, you won't need this. Read Postfix Policy Delegations HERE (http://www.postfix.com/SMTPD_POLICY_README.html).
HERE (http://www.postfix.com/postconf.5.html) are the rest of the Postfix options.
In your case, the SMTP part is going to be very minimal. Keep it that way and do not copy/paste stuff anywhere WITHOUT knowing exactly what it does. Postfix can be a very powerful, full featured, enterprise ready SMTP server, or it can be a simple local system messenger. Depends on what you do with it.
Only add a piece at a time, then make sure that works. Do not add 40 lines at a time then try something, you will spend more time troubleshooting than anything else.
Cajun Mike 03-23-2007, 12:23 PM /etc/init.d/saslauthd start
/etc/init.d/saslauthd: 53: Syntax error: "(" unexpected
Postfix main.cf
myhostname = mail.cajunmike.servecrown.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/spool/mail
home_mailbox = Maildir/
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP $mail_name
append_dot_mydomain = no
default_process_limit = 10
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
>$config_directory/$process_name.$process_id.log & sleep 5
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unauth_pipelining,
reject_unknown_recipient_domain,
reject_unknown_sender_domain
reject_unauth_destination,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
smtpd_sender_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unauth_pipelining,
permit
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd.conf
pwcheck_method: saslauthd
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: mail
sql_passwd: apasswd
sql_database: maildb
sql_select: select clear from users where id='%u@%r' and enabled = 1
/etc/default/saslauthd
# This needs to be uncommented before saslauthd will be run automatically
START=yes
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"
MECHANISMS="sasldb"
/etc/init.d/saslauthd
PIDFILE=/var/spool/postfix/var/run/${NAME}/saslauthd.pid
eaux-yeah 03-24-2007, 03:50 PM Man, don't make pull a RTFM on ya. opps, looks like I just did ! :hihi:
!!! READ (http://www.postfix.org/SASL_README.html) !!!
You still have sql references in the smtpd.conf file.
Replace it all with this:
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
and see what happens.
You can have Postfix/Dovecot and all other extras setup in no time using the Webmin (http://webmin.com). I like Webmin in the fact that it sticks with the standards of whatever application you are dealing with, meaning it doesn't re-write config files in it's own way, unlike others. You won't learn much going the Webmin way, except that maybe you can go behind Webmin and see what the config files look like afterward, but it will have you up and running quickly.
Going the route you are now WILL teach you lots but can be painful and very unforgiving, but it WILL demand that you READ. You can't just copy/paste things and expect them to work.
I could just post everything you need, if you really want me to, but that would be cheating and I would like to see you learn this cause I know you will figure it out.
Cajun Mike 03-24-2007, 08:21 PM hey what you expect I have been on nyquil most of the week. I like pretty colors
Cajun Mike 03-29-2007, 09:36 AM so no errors from postfix now onto Amavisd-new + SpamAssassin + ClamAV +
supposedly done >>>> SASL + TLS +
I don't think I need this right now >>>SquirrelMail+
well i think this will be last >>>>>Postgrey
Buickman 04-02-2007, 08:09 PM If I can, I'd like to piggyback on this thread.
I went here and followed this to the letter, to the best I could;
http://www.howtoforge.com/virtual_postfix_mysql_quota_courier_ubuntu_edgy
Everything appears to work. I created a user in the mysql and all. I setup an email account on one of my other machines using Thunderbird and it sees the smtp server. But when I try to send an email, it keeps asking for my password. I know the password is right. I tried changing the username for the outgoing to something made up, and it still asked for a password. Seems like it's not even trying to use the mysql at all.
Also, when trying to get email, I get a message that says "Sending of password did not succeed. Mail server timbo.homelinux.net responded: chdir timbo.homelinux.net/tim/ failed."
Any suggestions?
eaux-yeah 04-03-2007, 12:46 AM But when I try to send an email, it keeps asking for my password. I know the password is right. I tried changing the username for the outgoing to something made up, and it still asked for a password.There could be a bazillion or 2 things that could be making this happen.
I would need to see what your /etc/postfix/main.cf looks like before I could give an accurate answer.
Don't post any sensitive info.
Off the top of my head, have you tried selecting the "Server Requires Authentication" (or similar) option in the SMTP settings of your E-Mail client?
Does timbo.homelinux.net resolve to a LOCAL IP address on the server itself?
A lot of dynamic DNS services are not too friendly about the systems accessing themselves via the public IP address, or I should rephrase, some ROUTERS do not like it. You may need to add the DNS/IP info in you /etc/hosts file.
In your /var/log directory there are a few mail log files mail.err, mail.info, mail.log, and mail.warn.
Look at those, in particular the mail.err, mail.info, and mail.log files. You answer may lie there.
Also, when trying to get email, I get a message that says "Sending of password did not succeed. Mail server timbo.homelinux.net responded: chdir timbo.homelinux.net/tim/ failed."Sounds like a courier-imapd issue. That is an incorrect path. Should be wanting to change to a legit Mailbox or Maildir directory (I prefer Maildirs). The directory MUST exists as well.
There are courier log files in /var/log, too. Sorry, don't know if Ubuntu auto generates the user mailboxes or not.
Buickman 04-03-2007, 05:11 AM There could be a bazillion or 2 things that could be making this happen.
I would need to see what your /etc/postfix/main.cf looks like before I could give an accurate answer.
Don't post any sensitive info.[quote]
Here's the main.cf;
[quote]# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# 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 (Ubuntu)
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
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = timbo.homelinux.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = timbo.homelinux.net, localhost, localhost.localdomain
mydestination = $myhostname, localhost, localhost.localdomain
relayhost =
#mynetworks = 127.0.0.0/8, 192.168.69.0/24
Mynetworks = 127.0.0.0/8, 192.168.69.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Off the top of my head, have you tried selecting the "Server Requires Authentication" (or similar) option in the SMTP settings of your E-Mail client?
I tried that with and without.
Does timbo.homelinux.net resolve to a LOCAL IP address on the server itself?
I'm not sure. I have ports 25 and 110 forwarded to the server in my router.
A lot of dynamic DNS services are not too friendly about the systems accessing themselves via the public IP address, or I should rephrase, some ROUTERS do not like it. You may need to add the DNS/IP info in you /etc/hosts file.
In my /etc/hosts, There's one line that has my actual IP from my ISP with the domain name I created with dyndns.org. Is that what you mean?
In your /var/log directory there are a few mail log files mail.err, mail.info, mail.log, and mail.warn.
Look at those, in particular the mail.err, mail.info, and mail.log files. You answer may lie there.This is my mail.log from this morning;
Apr 3 04:31:34 timbo amavis[4177]: starting. /usr/sbin/amavisd-new at timbo.homelinux.net amavisd-new-2.4.1 (20060508), Unicode aware
Apr 3 04:31:34 timbo amavis[4177]: Perl version 5.008008
Apr 3 04:31:36 timbo amavis[4220]: Module Amavis::Conf 2.065
Apr 3 04:31:36 timbo amavis[4220]: Module Archive::Tar 1.29
Apr 3 04:31:36 timbo amavis[4220]: Module Archive::Zip 1.16
Apr 3 04:31:36 timbo amavis[4220]: Module BerkeleyDB 0.27
Apr 3 04:31:36 timbo amavis[4220]: Module Compress::Zlib 1.41
Apr 3 04:31:36 timbo amavis[4220]: Module Convert::TNEF 0.17
Apr 3 04:31:36 timbo amavis[4220]: Module Convert::UUlib 1.051
Apr 3 04:31:36 timbo amavis[4220]: Module DBD::mysql 3.0006
Apr 3 04:31:36 timbo amavis[4220]: Module DBI 1.51
Apr 3 04:31:36 timbo amavis[4220]: Module DB_File 1.814
Apr 3 04:31:36 timbo amavis[4220]: Module Digest::MD5 2.36
Apr 3 04:31:36 timbo amavis[4220]: Module MIME::Entity 5.420
Apr 3 04:31:36 timbo amavis[4220]: Module MIME::Parser 5.420
Apr 3 04:31:36 timbo amavis[4220]: Module MIME::Tools 5.420
Apr 3 04:31:36 timbo amavis[4220]: Module Mail::Header 1.74
Apr 3 04:31:36 timbo amavis[4220]: Module Mail::Internet 1.74
Apr 3 04:31:36 timbo amavis[4220]: Module Mail::SPF::Query 1.999001
Apr 3 04:31:36 timbo amavis[4220]: Module Mail::SpamAssassin 3.001007
Apr 3 04:31:36 timbo amavis[4220]: Module Net::Cmd 2.26
Apr 3 04:31:36 timbo amavis[4220]: Module Net::DNS 0.57
Apr 3 04:31:36 timbo amavis[4220]: Module Net::SMTP 2.29
Apr 3 04:31:36 timbo amavis[4220]: Module Net::Server 0.90
Apr 3 04:31:36 timbo amavis[4220]: Module Razor2::Client::Version 2.81
Apr 3 04:31:36 timbo amavis[4220]: Module Time::HiRes 1.86
Apr 3 04:31:36 timbo amavis[4220]: Module Unix::Syslog 0.100
Apr 3 04:31:36 timbo amavis[4220]: Amavis::DB code loaded
Apr 3 04:31:36 timbo amavis[4220]: Amavis::Cache code loaded
Apr 3 04:31:36 timbo amavis[4220]: SQL base code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: SQL::Log code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: SQL::Quarantine NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: Lookup::SQL code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: Lookup::LDAP code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: AM.PDP-in proto code loaded
Apr 3 04:31:36 timbo amavis[4220]: SMTP-in proto code loaded
Apr 3 04:31:36 timbo amavis[4220]: Courier proto code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: SMTP-out proto code loaded
Apr 3 04:31:36 timbo amavis[4220]: Pipe-out proto code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: BSMTP-out proto code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: Local-out proto code loaded
Apr 3 04:31:36 timbo amavis[4220]: OS_Fingerprint code NOT loaded
Apr 3 04:31:36 timbo amavis[4220]: ANTI-VIRUS code loaded
Apr 3 04:31:36 timbo amavis[4220]: ANTI-SPAM code loaded
Apr 3 04:31:36 timbo amavis[4220]: ANTI-SPAM-SA code loaded
Apr 3 04:31:36 timbo amavis[4220]: Unpackers code loaded
Apr 3 04:31:36 timbo amavis[4220]: Found $file at /usr/bin/file
Apr 3 04:31:36 timbo amavis[4220]: No $dspam, not using it
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .mail
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .asc
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .uue
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .hqx
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .ync
Apr 3 04:31:36 timbo amavis[4220]: No decoder for .F tried: unfreeze, freeze -d, melt, fcat
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .Z at /bin/uncompress
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .gz
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .bz2 at /bin/bzip2 -d
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .lzo at /usr/bin/lzop -d
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .rpm at /usr/bin/rpm2cpio
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .cpio at /usr/bin/pax
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .tar at /usr/bin/pax
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .deb at /usr/bin/ar
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .zip
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .rar at /usr/bin/rar
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .arj at /usr/bin/arj
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .arc at /usr/bin/nomarch
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .zoo at /usr/bin/zoo
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .lha at /usr/bin/lha
Apr 3 04:31:36 timbo amavis[4220]: No decoder for .doc tried: ripole
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .cab at /usr/bin/cabextract
Apr 3 04:31:36 timbo amavis[4220]: No decoder for .tnef
Apr 3 04:31:36 timbo amavis[4220]: Internal decoder for .tnef
Apr 3 04:31:36 timbo amavis[4220]: Found decoder for .exe at /usr/bin/rar; /usr/bin/lha; /usr/bin/arj
Apr 3 04:31:36 timbo amavis[4220]: Using internal av scanner code for (primary) ClamAV-clamd
Apr 3 04:31:36 timbo amavis[4220]: Using internal av scanner code for (primary) check-jpeg
Apr 3 04:31:36 timbo amavis[4220]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Apr 3 04:31:37 timbo amavis[4220]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.27, libdb 4.3
Apr 3 04:31:42 timbo authdaemond: modules="authmysql", daemons=5
Apr 3 04:31:42 timbo authdaemond: Installing libauthmysql
Apr 3 04:31:43 timbo authdaemond: Installation complete: authmysql
Apr 3 04:31:45 timbo dccifd[4810]: fopen(/var/run/dcc/dccifd.pid): No such file or directory
Apr 3 04:31:45 timbo dccifd[4810]: 1.2.74 listening to /var/lib/dcc/dccifd
Apr 3 04:31:51 timbo postfix/master[5172]: daemon started -- version 2.3.3, configuration /etc/postfix
Apr 3 04:55:31 timbo courierpop3login: Connection, ip=[::ffff:*.*.*.*] (I masked my actual IP)
Apr 3 04:55:50 timbo courierpop3login: chdir timbo.homelinux.net/tim/: No such file or directory
Apr 3 05:02:24 timbo postfix/smtpd[8011]: connect from timbo.homelinux.net[ip address_removed]
Apr 3 05:02:27 timbo postfix/smtpd[8011]: warning: SASL authentication failure: Password verification failed
Apr 3 05:02:27 timbo postfix/smtpd[8011]: warning: timbo.homelinux.net[*.*.*.*]: SASL PLAIN authentication failed: authentication failure
Apr 3 05:02:27 timbo postfix/smtpd[8011]: warning: timbo.homelinux.net[*.*.*.*]: SASL LOGIN authentication failed: authentication failure
Apr 3 05:03:13 timbo postfix/smtpd[8011]: lost connection after AUTH from timbo.homelinux.net[*.*.*.*]
Apr 3 05:03:13 timbo postfix/smtpd[8011]: disconnect from timbo.homelinux.net[*.*.*.*]
Apr 3 05:03:38 timbo postfix/smtpd[8011]: connect from timbo.homelinux.net[*.*.*.*]
Apr 3 05:03:44 timbo postfix/smtpd[8011]: warning: SASL authentication failure: Password verification failed
Apr 3 05:03:44 timbo postfix/smtpd[8011]: warning: timbo.homelinux.net[*.*.*.*]: SASL PLAIN authentication failed: authentication failure
Apr 3 05:03:44 timbo postfix/smtpd[8011]: warning: timbo.homelinux.net[*.*.*.*]: SASL LOGIN authentication failed: authentication failureThe entries at 04:55 is when I tried to check my mail, the entries at 05:03 is when I tried to send. It says it failed PLAIN authentication, but in my client I'm telling it to use TLS.
This is today's only entry in the mail.err;
Apr 3 04:31:45 timbo dccifd[4810]: fopen(/var/run/dcc/dccifd.pid): No such file or directoryThe mail.info has the same entries as the mail.log.
Sounds like a courier-imapd issue. That is an incorrect path. Should be wanting to change to a legit Mailbox or Maildir directory (I prefer Maildirs). The directory MUST exists as well.
There are courier log files in /var/log, too. Sorry, don't know if Ubuntu auto generates the user mailboxes or not.Maildirs is a seperate program I have to install, right?
Cajun Mike 04-03-2007, 07:50 AM what are you using courier or dovecot?
http://www.howtoforge.com/postfix_relaying_through_another_mailserver
Buickman 04-03-2007, 08:25 AM The procedure had me install courier.
eaux-yeah 04-03-2007, 04:01 PM BuickMan, man you jumped in with BOTH feet!
The tutorial you are following is mainly for a business mail server solution and is overkill for home use. It's a nice one, though. Of course, if that's what you want to learn, there's nothing wrong with that. You will learn, just might get painful in the process.
For learning purposes, I would recommend just using SASL/TLS authentication only (NO MySql) and NOT use any virtual mailbox/domain setups. Make that a 'Step 2' option AFTER you get things going. Keep it simple.
In my /etc/hosts, There's one line that has my actual IP from my ISP with the domain name I created with dyndns.org. Is that what you mean?Really, do you have a static public IP address? Your router should be taking care of that. Not your server, unless the server is a direct 'public node'.
We are really only concerned with the private network address.
Open the /etc/hosts file on the mail server and make sure there is an entry pointing timbo.homelinux.net to the private network address, not public.
Example:
192.168.69.* timbo.homelinux.netIf you already have the private address in there, you can add the timbo.homelinux.net part to that same line. You should remove the public ISP address if there is one.
Do you have the /etc/mailname file and does it read timbo.homelinux.net?
Change Mynetworks to mynetworks (lower case M). I don't think Postfix cares, but I like it better that way. :ezbill:
Apr 3 04:31:45 timbo dccifd[4810]: fopen(/var/run/dcc/dccifd.pid): No such file or directory
Apr 3 04:31:45 timbo dccifd[4810]: 1.2.74 listening to /var/lib/dcc/dccifd
That is probably Amavisd calling on that. Install it, and razor, too:
sudo apt-get install dcc-server razorThat should fix that error.
Apr 3 04:55:31 timbo courierpop3login: Connection, ip=[::ffff:*.*.*.*] (I masked my actual IP)
Apr 3 04:55:50 timbo courierpop3login: chdir timbo.homelinux.net/tim/: No such file or directoryLooks like you have an incorrect entry in one of your courier-imapd config files or mysql-virtual_mailboxes.cf.
Does /home/vmail actually exist?
Apr 3 05:02:27 timbo postfix/smtpd[8011]: warning: timbo.homelinux.net[*.*.*.*]: SASL PLAIN authentication failed: authentication failure
Apr 3 05:02:27 timbo postfix/smtpd[8011]: warning: timbo.homelinux.net[*.*.*.*]: SASL LOGIN authentication failed: authentication failure
Apr 3 05:03:13 timbo postfix/smtpd[8011]: lost connection after AUTH from timbo.homelinux.net[*.*.*.*]
That may be fixed after you change the /etc/hosts file settings.
I haven't read the how-to you have been following, did it ever make you setup the salsdb users/passwords?
Maildirs is a seperate program I have to install, right?No, Maildir is a type of Mailbox. The standard Mailbox (mbox) is a single file with all of you e-mail. Maildirs actually split things into individual directories and each email is in a unique file. Maildir creates many more individual files, but it is very fast compared to Mbox, especially when the Mbox file grows over time.
I have been meaning to write up a simple home e-mail gateway setup here.
Now that I see you are doing this, as well as Mike, I'll hurry up about it.
I really hate it that the majority of home e-mail server how-to setups are all using mysql. SASL/TLS authentication is really all you should need to start with. I see nothing but confusion for the someone that has never done this. Like I said before, great for business servers, not so for home servers.
Also see what I mentioned earlier in this thread about hanging SMTP servers on dynamic public IP addresses, it can get quite ugly and confusing.
Hope my answers are not too confusing. Let me know if so.
|
|