![]() |
|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi,
postfix seems to be ignoring my aliases file. There are no errors output when postfix starts, nor any errors logged while it is running. I'm pretty sure I will have an error somewhere but can't see the wood for the trees. main.cf: Code:
queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix append_dot_mydomain = no mail_owner = postfix myhostname = coppermine.abcdef.co.uk myorigin = $myhostname inet_interfaces = 172.16.1.1, localhost mydestination = $myhostname, coppermine, coppermine.intranet.abcdef.co.uk, localhost. $mydomain, localhost unknown_local_recipient_reject_code = 550 mynetworks = 127.0.0.0/8, 172.16.1.0/24, 172.16.4.0/24 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases transport_maps = hash:/usr/local/etc/postfix/transport smtpd_client_restrictions = permit_mynetworks, reject message_size_limit = 52428800 mailbox_size_limit = 5242880000 debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = /usr/local/share/doc/postfix manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = /usr/local/share/doc/postfix Code:
root: philip@vm-lxsrv-001.intranet.abcdef.co.uk # Basic system aliases -- these MUST be present MAILER-DAEMON: postmaster postmaster: root # General redirections for pseudo accounts _dhcp: root _pflogd: root bin: root bind: root daemon: root games: root kmem: root mailnull: postmaster man: root news: root nobody: root operator: root pop: root proxy: root smmsp: postmaster sshd: root system: root toor: root tty: root usenet: news uucp: root # NETWORK OPERATIONS MAILBOX NAMES abuse: root # noc: root security: root # SUPPORT MAILBOX NAMES FOR SPECIFIC INTERNET SERVICES ftp: root ftp-bugs: ftp Code:
.intranet.abcdef.co.uk : * smtp:relay.isp.net Code:
coppermine# postmap -q root hash:/etc/aliases philip@vm-lxsrv-001.intranet.abcdef.co.uk Code:
Jun 1 20:36:32 coppermine postfix/pickup[47277]: 6770E2288F: uid=0 from=<root> Jun 1 20:36:32 coppermine postfix/cleanup[47582]: 6770E2288F: message-id=<20100601203632.6770E2288F@coppermine.abcdef.co.uk> Jun 1 20:36:32 coppermine postfix/qmgr[47278]: 6770E2288F: from=<root@coppermine.abcdef.co.uk>, size=349, nrcpt=1 (queue active) Jun 1 20:36:32 coppermine postfix/smtp[47584]: 6770E2288F: to=<root@coppermine.abcdef.co.uk>, orig_to=<root>, relay=relay.isp.net[xxx.xxx.xxx.xxx]:25, delay=0.47, delays=0.04/0.02/0.15/0.26, dsn=2.0.0, status=sent (250 X-ISPnet-Relay: 61607e369755bd544f3912b44ee78834) Jun 1 20:36:32 coppermine postfix/qmgr[47278]: 6770E2288F: removed Phil |
|
|||
![]()
Did you run [/usr/local/bin/newaliases to 'compile' the plain text /etc/aliases file into database format?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
I had been using /usr/bin/newaliases, so I checked mailer.conf to ensure it was pointing at the right version. I also ran /usr/local/bin/newaliases directly just to be absolutely sure, but it doesn't make a difference.
postmap uses the db file (even though you specify the plain text file) for lookups, so the db file is (read: should be) correct as postmap is returning the alias correctly. |
|
|||
![]()
Last December I assisted somebody with setting up Mailman+Postfix. There were some confusing issues with aliases too, because /etc/mail also has an aliases file.
If you are really desperate you could add your root alias to the /etc/mail/aliases file and run newaliases on it. When you alias the root account to a local user account on the postfix box itself, does the alias work then?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
/etc/mail/aliases is a symlink to /etc/aliases on my machine.
Code:
coppermine $ postconf alias_maps alias_maps = hash:/etc/aliases coppermine $ ls -l /etc/aliases* -rw-r--r-- 1 root wheel 1656 Jun 1 20:48 /etc/aliases -rw-r--r-- 1 root wheel 16384 Jun 5 17:01 /etc/aliases.db coppermine $ ls -l /etc/mail/aliases* lrwxr-xr-x 1 root wheel 12 Jun 1 19:29 /etc/mail/aliases -> /etc/aliases lrwxr-xr-x 1 root wheel 15 Jun 1 19:28 /etc/mail/aliases.db -> /etc/aliases.db By the way, I'm using FreeBSD 7.1 RELEASE p11 i386, I also have a postfix configured in a similar way on a Debian desktop and that works fine. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Postfix and Dovecot SMTP auth configuration hints | J65nko | OpenBSD Packages and Ports | 0 | 5th February 2010 02:53 AM |
PF Configuration for newbie | slakic | OpenBSD Security | 1 | 20th August 2009 02:35 PM |
k3b, configuration. | maxrussell | FreeBSD Ports and Packages | 4 | 3rd March 2009 04:23 AM |
Postfix error on 7.1 | windependence | FreeBSD Ports and Packages | 3 | 2nd February 2009 10:42 AM |
Working Configuration for Openbsd 4.0 - Postfix - SASL - TLS | roundkat | Guides | 0 | 4th May 2008 05:38 PM |