Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Unable to receive mail from Internet

Reply to Post Add a New Topic
UserPost

2:21 am
May 22, 2010


scotty2061

New Member

posts 2

I followed the instructions on http://www.linuxmail.info/  for the sections:

 

How to install SMTP, POP3, IMAP and Webmail service

How to add antivirus and antispam filtering

How to integrate MySQL or support multiple domains

Postfix and Dovecot SSL/TLS

 

I am using SASL with MYSQL since I need to run multiple domains. This system is replacing an older Windows based mail server. It is assigned the IP of the old system so I don't have to worry about MX records having to be updated.

 

Internally, everything appears to work perfectly. Users can authenticate to the mail server and send mail.

 

Externally, anything destined to a valid user who has an account on the server has their mail rejected with the error:

 

Sender address rejected: not logged in

 
This same error also appears in /var/log/mail. The mail is definately getting to the server, but the server
doesn't seem to know what to do with the mail when it gets there. Ideally, the system should permit outbound SMTP only to authenticated users. Accept mail from other 
mailservers destined for accounts on the server and reject everything else.
 
At this point I'm at a loss for what else to even look for to resolve this issue.

4:53 am
May 22, 2010


consultant

Admin

posts 341

Please post your postfix configuration using the command below

postconf -n

 

11:31 am
May 22, 2010


scotty2061

New Member

posts 2

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_security_level = may
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = pcre:/etc/postfix/sender_login.pcre
smtpd_sender_restrictions = reject_sender_login_mismatch
smtpd_tls_cert_file = /etc/pki/tls/certs/mail.example.com.cert
smtpd_tls_key_file = /etc/pki/tls/private/mail.example.com.key
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf,hash:/usr/local/mailman/data/virtual-mailman
virtual_gid_maps = static:501
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-users.cf
virtual_uid_maps = static:501

12:19 pm
May 22, 2010


consultant

Admin

posts 341

I've corrected the Prevent
Sender From Spoofing Email Address
article. Please change the line below

smtpd_sender_restrictions =
reject_sender_login_mismatch

to

smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
Reply to Post

Reply to Topic:
Unable to receive mail from Internet

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 5
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 325
Posts: 1011

Membership:

There are 927 Members
There have been 84 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 45
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
semag – 11

Recent New Members: bikesh, pappy_says, geos, boudi7, dara.hr, afif

Administrators: consultant (341 Posts)