On 01-Dec-12 12:30 PM, James Bertelson wrote:
> On Sat, Dec 1, 2012 at 10:26 AM, Bill Thoen<[email protected]> wrote:
>> Hello folks,
>>
>> I'm setting up a new CentOS 64-bit machine and have nearly got mail
>> working, except I can't send mail to myself from outside the LAN it's
>> on. When I try I get this error message:
>>
>> "An error occurred while sending mail. The mail server responded: 5.1.1
>> <[email protected]>: Recipient address rejected: User unknown in
>> virtual alias table. Please check the message recipient
>> [email protected] and try again."
>>
>> I can send mail from that address, no problem. I'm using the latest
>> Dovecot and Postfix. I've tried setting an alias in etc/aliases like so:
>> bthoen: [email protected]
>>
>> and pointing local_recipient_maps in main.cf at it. I also tried leaving
>> that empty. Also did 'service postfix restart' and 'service dovecot
>> restart' whenever I disturbed their config files.
>>
>> The log says that dovecot connects and disconnects OK, but I'm so new to
>> this end of the business that I probably don't see half of what I should
>> notice. Here's the last few log entries as I tried to login via Thunderbird:
>>
>> Dec 1 10:16:02 oneimage dovecot: IMAP(bthoen): Disconnected: Logged out
>> Dec 1 10:51:48 oneimage dovecot: imap-login: Login: user=<bthoen>,
>> method=PLAIN, rip=::ffff:72.251.11.78, lip=::ffff:192.231.196.244, TLS
>> Dec 1 10:51:48 oneimage dovecot: IMAP(bthoen): Effective uid=500,
>> gid=500, home=/home/bthoen
>> Dec 1 10:51:48 oneimage dovecot: IMAP(bthoen): maildir:
>> data=/home/bthoen/Maildir
>> Dec 1 10:51:48 oneimage dovecot: IMAP(bthoen): maildir:
>> root=/home/bthoen/Maildir, index=/home/bthoen/Maildir, control=, inbox=
>>
>> I've read lots of article on Dovecot, Postfix and related from Googlets
>> -- not understanding a lot of it. And I don't know what would be
>> relevant to display here for help. This is probably dead simple to an
>> experienced sysadmin, but my experienced SA got a real job in another
>> state and is no longer as free to freelance as before. So I have to
>> learn enough to make this work in the short term, and hopefully more
>> will sink in in the long run.
>>
>> Any help, references to articles, or requests for some information to
>> diagnose what's wrong would be much appreciated.
>>
>> TIA,
>> Bill Thoen
> Bill,
>
> It sounds like Postfix doesn't know it's supposed to accept mail for
> your domain. Make sure that visualfarms.com is in the mydestination=
> line in main.cf and restart the service if you have to add it. If that
> doesn't work, it might be helpful to see the whole main.cf (you can
> obfuscate anything you don't want to share, though I can't think of
> anything in there that would be sensitive.)
Sorry, I tried to send the main.cf file yesterday, but it exceeds this
forum's limits for a single message. So I'm posting main.cf with only
the settings as I have them. This is followed by a more precise log of
events. I'll start looking into Postfix a little more carefullly and
see if I can spot (and recognize) the error. But Postfix must be
working somewhat at least because messaghes sent locally do get
delivered correctly. I still need some help.
*main.cf reduced in size by removing excess comments:*
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
#default_privs = nobody
#myhostname = host.domain.tld
myhostname = mail.vfarms.com
mydomain = vfarms.com
#myorigin = $myhostname
myorigin = $mydomain
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = all
proxy_interfaces =
#proxy_interfaces = 1.2.3.4
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
www.$mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mail.$mydomain, www.$mydomain, ftp.$mydomain
#local_recipient_maps = unix:passwd.byname $alias_maps
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
#mynetworks_style = class
#mynetworks_style = subnet
mynetworks_style = host
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
#in_flow_delay = 1s
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
#home_mailbox = Maildir/
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
# local_destination_recipient_limit = 300
# local_destination_concurrency_limit = 5
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =
#luser_relay = [email protected]
#luser_relay = [email protected]
#luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20
#debug_peer_level = 2
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# 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
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
*
If I'm logged on locally, it works perfectly.
*
Dec 2 12:54:53 oneimage postfix/pickup[2374]: 5562577F80A2: uid=500
from=<bthoen>
Dec 2 12:54:53 oneimage postfix/cleanup[2423]: 5562577F80A2:
message-id=<[email protected]>
Dec 2 12:54:53 oneimage postfix/qmgr[23504]: 5562577F80A2:
from=<[email protected]>, size=331, nrcpt=1 (queue active)
Dec 2 12:54:53 oneimage postfix/local[2425]: 5562577F80A2:
to=<[email protected]>, relay=local, delay=0.04,
delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 2 12:54:53 oneimage postfix/qmgr[23504]: 5562577F80A2: removed
*When I try to send myself a message from a machine on a different
network, it doesn't know me.*
Dec 2 12:37:15 www postfix/smtpd[29287]: Anonymous TLS connection
established from node63.
8.251.72.1dial.com[72.251.8.63]: TLSv1 with cipher
DHE-RSA-CAMELLIA256-SHA (256/256 bits)
Dec 2 12:37:17 www postfix/smtpd[29287]: NOQUEUE: reject: RCPT from
node63.8.251.72.1dial.
com[72.251.8.63]: 550 5.1.1 <[email protected]>: Recipient address
rejected: User unkn
own in virtual alias table; from=<[email protected]>
to=<[email protected]> proto=ESMT
P helo=<[72.251.8.63]>
Dec 2 12:37:40 www postfix/smtpd[29287]: disconnect from
node63.8.251.72.1dial.com[72.251.
8.63]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug