[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mutt + smail



Hi, 

I'm using smail as my mda on this debian machine, fetchmail to grab the
mail off my mailserver (running postfix). I use mutt as my mailreader.
No matter how I edit my .muttrc (using realname/from variables or even
using my_hdr) I cannot get it to display the from line properly. In the
send window, just before I confirm sending, at the top where it lists
From:, it is blank. I'm using the stock smail config file that is
generated by the debian installation of the package. Does anybody have
any insight as to why? It seems to be using the email address i manually
specified in the smail config and the realname from /etc/password on all
outgoing mail. I specified the email in the smail config because
regardless of what I set in mutt, all outgoing mail looked like it was
coming from quasar.orblivion.com instead of just orblivion.com (quasar
being this workstation). Am I doing something wrong here? My muttrc is
coming from quasar.orblivion.com instead of just orblivion.com (quasar
being this workstation). Am I doing something wrong here? My muttrc is
as follows:

#reset all

source "~/.mail_aliases"

# User description
########################################################
set realname = 'David Orman'
set reply_to = ask-yes
#set reverse_name = no
#set reverse_realname = yes
set from = 'monolith@orblivion.com'
#set gecos_mask = "^[^,]*"
#set hidden_host = no
set hostname = 'orblivion.com'
#set alternates = ""

# General mutt options
####################################################
#set wait_key = yes
#set weed = yes
#set status_on_top = no
#set suspend = yes
#set timeout = 600
#set beep = yes
#set user_agent = yes
#set delete_untag = yes
#set prompt_after = yes
#set quit = yes
#set read_inc = 10
#set mail_check = 5
#set menu_scroll = no
#set meta_key = no
#set help = yes
#set history = 10
#set read_only = no
#set date_format = "!%a, %b %d, %Y at %I:%M:%S%p %Z"
set delete = yes
#set dotlock_program = "/usr/local/bin//mutt_dotlock"
#set beep_new = no
#set charset = "iso-8859-1"
#set check_new = yes

# OS Specifiques options
##################################################
#set tmpdir = ""
#set print = ask-no
#set print_command = "lpr"
#set print_decode = yes
#set ispell = "ispell"
#set locale = "C" 
#set shell = ""
#set spoolfile = ""

# Menu index
##############################################################
#set wrap_search = yes
#set sort_re = yes
#set status_chars = "-*%A"
#set status_format = "-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o?
Old:%o?%?d?$#set strict_threads = no
#set thorough_search = no
#set to_chars = " +TCF"
#set simple_search = "~f %s | ~s %s"
set sort = threads 
set sort_aux = date-sent  
#set resolve = yes
#set index_format = "%4C %Z %{%b %d} %-15.15L (%4l) %s"
#set mark_old = yes
#set allow_8bit = yes
#set arrow_cursor = no
#set ascii_chars = no
#set auto_tag = no
#set collapse_unread = yes
#set uncollapse_jump = no

# Internal Pager
##########################################################
#set visual = ""
#set sig_dashes = yes
#set smart_wrap = yes  
#set smileys = "(>From )|(:[-^]?[][)(><}{|/DP])"
#set quote_regexp = "^([ \t]*[|>:}#])+"
#set pager = "builtin"    
#set pager_context = 0
#set pager_format = "-%Z- %C/%m: %-20.20n   %s"
#set pager_index_lines = 0
#set pager_stop = no 
#set markers = yes
#set escape = "~"
#set tilde = no

# Composing
###############################################################
#set use_domain = yes
#set signature = "~/.signature"
#set postpone = ask-yes
#set postponed = "~/postponed"
#set query_command = ""
#set recall = ask-yes
set editor = "nano"
#set fast_reply = no      
#set abort_nosubject = ask-yes
#set abort_unmodified = yes
#set askbcc = no
#set askcc = no 

# Replying
################################################################
#set post_indent_string = ""
#set reply_regexp = "^(re([\\[0-9\\]+])*|aw):[ \t]*"
#set reply_self = no
#set indent_string = "> "
#set in_reply_to = "%i; from %a on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}"
#set honor_followup_to = yes
#set ignore_list_reply_to = no
#set include = ask-yes 
#set attribution = "On %d, %n wrote:"
#set bounce_delivered = yes

# Forwarding
##############################################################
#set forward_decrypt = yes
#set forward_decode = yes
#set forward_format = "[%a: %s]"
#set forward_quote = no

# Folder and Mailbox
######################################################
#set write_inc = 10
#set sort_browser = alpha
set record = "~/mail/sent-mail"
#set pipe_split = no
#set pipe_decode = no
#set pipe_sep = "\n"
#set move = ask-no
#set mask = "!^\\.[^.]"
#set mbox = "~/mbox"
#set mbox_type = mbox
#set mh_purge = no
#set confirmappend = yes
#set confirmcreate = yes
#set copy = yes
#set default_hook = "~f %s !~P | (~P ~C %s)"
#set fcc_attach = yes
#set fcc_clear = no
set folder = "~/mail"
#set folder_format = "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f"
#set force_name = no

# Headers
#################################################################
#set hdrs = yes
#set header = no
#set edit_headers = no 
#set autoedit = no  

# Sending
#################################################################
#set write_bcc = yes
#set use_from = yes
#set save_address = no
#set save_empty = yes
#set save_name = no  
#set send_charset = ""
#set mix_entry_format = "%4n %c %-16s %a"
#set mixmaster = "mixmaster"
#set metoo = no
#set encode_from = no
#set envelope_from = no
#set followup_to = yes

# Alias
###################################################################
#set sort_alias = alias
#set reverse_alias = no
set alias_file = "~/.mail_aliases"
#set alias_format = "%4n %t %-10a   %r"

# Attached documents
######################################################
#set attach_format = "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?,%s] "
#set attach_format = "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?,
%s] "
#set attach_sep = "\n"
#set attach_split = yes

# MIME
####################################################################
#set rfc2047_parameters = no
#set mime_forward_rest = yes
#set message_format = "%s"
#set mailcap_path = ""
#set mailcap_sanitize = yes
#set mime_forward = no
#set mime_forward_decode = no
#set implicit_autoview = no

# POP
#####################################################################
#set pop_user = ""
#set pop_pass = ""
#set pop_delete = no
#set pop_delete = no
#set pop_host = ""
#set pop_port = 110
#set pop_last = no

# IMAP
####################################################################
#set imap_checkinterval = 60
#set imap_list_subscribed = no
#set imap_user = ""
#set imap_cramkey = ""
#set imap_pass = ""   
#set imap_passive = yes
#set imap_servernoise = yes
#set imap_home_namespace = ""
#set imap_preconnect = ""

# SSL
#####################################################################
#set entropy_file = ""
#set ssl_usesystemcerts = yes
#set ssl_use_sslv3 = yes
#set ssl_use_tlsv1 = yes
#set imap_force_ssl = no

# PGP
#####################################################################
#set pgp_timeout = 300
#set pgp_verify_sig = yes
#set pgp_sort_keys = address
#set pgp_create_traditional = no
#set pgp_decode_command = ""
#set pgp_getkeys_command = ""
#set pgp_decrypt_command = ""
#set pgp_clearsign_command = ""
#set pgp_sign_command = ""
#set pgp_encrypt_sign_command = ""
#set pgp_encrypt_only_command = ""
#set pgp_import_command = "" 
#set pgp_export_command = ""
#set pgp_verify_key_command = ""
#set pgp_list_secring_command = ""
#set pgp_list_pubring_command = ""
#set certificate_file = ""
#set pgp_autosign = no
#set pgp_autoencrypt = no
#set pgp_entry_format = "%4n %t%f %4l/0x%k %-4a %2c %u"
#set pgp_long_ids = no
#set pgp_replyencrypt = no  
#set pgp_replysign = no
#set pgp_replysignencrypted = no
#set pgp_retainable_sigs = no  
#set pgp_show_unusable = yes
#set pgp_sign_as = ""
#set pgp_sign_micalg = "pgp-md5"
#set pgp_strict_enc = yes    
#set pgp_verify_command = ""

# Scoring
#################################################################
#set score = yes
#set score_threshold_delete = -1
#set score_threshold_flag = 9999
#set score_threshold_read = -1

# Sendmail
################################################################
#set use_8bitmime = no  
#set sendmail = "/usr/lib/sendmail -oem -oi"
#set sendmail_wait = 0
#set dsn_notify = ""
#set dsn_return = ""

# Mailing Lists
###########################################################
unlists *
subscribe debian-user debian-security debian-security-announce
debian-news
subscribe debian-announce

# EOF

============================================================================

My smail config is as follows:

# This is the main Smail configuration file.
# Debian Config Version 2
# It was originally generated by `smailconfig', part of the Smail
package
# distributed with Debian, but it may edited by the mail system
administrator.
# It was originally generated by smailconfig at Tue Jun 26 15:36:52 CDT
2001
# Please modify the above line, if you change this file by hand.
# See smail-config (5) for details of the things that can be configured
here.


visible_name=orblivion.com
more_hostnames=localhost
-domains
hostnames=quasar:quasar.orblivion.com

max_load_ave=5
smtp_accept_max=20
smtp_accept_queue=10
rfc1413_query_timeout=15

require_configs
-second_config_file
-qualify_file
-retry_file
copying_file=/usr/share/doc/smail/copyright
max_message_size=10M


# Debian Config Version 2.1
#               ----------Begin-----------
# You really should know what you do here!
#WARNING:  You will have to add a correct local definition for
#        smtp_remote_allow if you have many local networks, or unset it
#        if you wish to relay only to your localnet (default).
#WARNING:  The current implementation of this feature blocks
#        relay from incoming SMTP to *any* outgoing transport.  This
#        means that even UUCP gateways require explicit permission if
#        this feature is enabled.
smtp_remote_allow=127.0.0.1

#       This flag tells smail to verify the hostnames given in
#       HELO or EHLO SMTP commands.
# it's off by default
# example to switch it on:
#+smtp_hello_verify

# more  helo/ehlo verify switches, see manpages for details
#smtp_hello_verify_literal
#smtp_hello_verify_ptr


#       A colon-separated list of host IP patterns that are 
#       allowed to deliver mail even though they have broken
#       DNS or give incorrect or invalid HELO or EHLO SMTP
#       greetings.
# it's off by default, which mean smtp_hello_broken_allow=*
# example to switch it on:
#smtp_hello_broken_allow=192.168.100.*


received_field="Received: ${if def:sender_host\
         {from $sender_host${if def:sender_host_addr\
         { (really [$sender_host_addr])}} }\
          else {${if def:sender_host_addr\
          {from [$sender_host_addr] }}}}\
         by $visible_name\n\t\
         ${if def:sender_program\
          {via $sender_program }}\
         ${if def:sender_proto\
          {with $sender_proto}\
          else {from stdin}}\
         ${if def:ident_sender\
          { (ident $ident_sender using $ident_method)}}\n\t\
         id <$message_id@$primary_name> (Debian Smail$version)\n\t\
         ${if def:input_addr\
          {for ${top:input_addr}}\
          else {for <unknown>}}\
         ; $spool_date "

from_field="From: $sender${if def:visible_name:\
         ${if origin:local:\@$visible_name}}\
         ${if def:sender_name: ($sender_name)}"

============================================================================

I'm not too familure with smail, and therefore I haven't dared edit the
config, although the from_field part looks rather interesting. If
anybody could give me some insight, I would greatly appreciate it!



Reply to: