LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Virtual Mailbox / Postfix (https://www.linuxquestions.org/questions/linux-server-73/virtual-mailbox-postfix-760151/)

conesh 10-06-2009 03:39 PM

Virtual Mailbox / Postfix
 
Hi Everyone.

I have issues with my postfix server, right now I have virtual domains working as well as virtual mailbox for the users.

We are trying to get those emails, but they are staying on the queue, it starts looking for the server and it times out.

I think it's an issue with the virtual mailboxes because we don't have anything on the directory that is supposed to keep them.

Is there anyone that can help me with this issue?

heres the config:

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_protocols = all
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 192.168.254.0/24, 127.0.0.0/8, 10.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.5.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination permit_inet_interfaces reject_unknown_reverse_client_hostname permit_sasl_authenticated
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:1000
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox
virtual_uid_maps = static:1000

cat virtual_domains
#
# virtual_domains
#
aztecagenecom.serveftp.net
citas.serveftp.net
reportes.serveftp.net

cat virtual_mailbox#
# virtual_mailbox
#
prueba@reportes.serveftp.net reportes.serveftp.net/prueba/
alfonso.reyes@reportes.serveftp.net reportes.serveftp.net/alfonso.reyes/

log error:

Oct 6 15:42:38 aztecagenecom postfix/smtp[4867]: D84D4248D4: to=<alfonso.reyes@
reportes.serveftp.net>, relay=none, delay=76801, delays=76770/0.01/30/0, dsn=4.4
.1, status=deferred (connect to reportes.serveftp.net[189.180.47.236]:25: Connec
tion timed out)

if you need any other information please let me know.

Have a great day and thanks for your help.

Berhanie 10-08-2009 04:59 AM

Hi, conesh.

Quote:

virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
The virtual_domains file should look like this:
Code:

#
# virtual_domains
#
aztecagenecom.serveftp.net      #
citas.serveftp.net              #
reportes.serveftp.net          #

Note the dummy '#' at the end of each line. 'hash' tables need a key and a value, even when the value is not used.
After making the changes you need to run 'postmap /etc/postfix/virtual_domains'.


All times are GMT -5. The time now is 09:17 PM.